/*! For license information please see sdk.932d9f8c291f98a24970620e3f002281aa30b543.js.LICENSE.txt */ !function(){var e,t,n,r,s={418:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(34576),s=n(20259),o=(0,r.EW)(()=>{var e,t,n,r,o=Number(null==(e=s.bK.value)||null==(t=e.app)?void 0:t.consentDuration)||31622400;return{durationInSeconds:o,durationInDays:o/86400,deniedDurationInSeconds:Number(null==(n=s.bK.value)||null==(r=n.app)?void 0:r.deniedConsentDuration)||void 0}})},517:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(58168),s=n(97071),o=n(20152),i=n(74283),a=n(51373),u=n(3342),l=n(38572);class d{update(e){var{customVariables:t={},requiredVendors:n=[],isConsentRequired:r,userStatus:s,regulation:o,allowedCategories:i,vendorIdsMap:a,hasMadeAnyChoice:u,vendorsStatuses:l,essentialPurposeIds:d}=e;for(var c of(window.didomiState={},Object.keys(t)))window.didomiState[c]=t[c];"complete"!==document.readyState&&window.addEventListener("load",()=>this.enableTags({customVariables:t,requiredVendors:n,isConsentRequired:r,userStatus:s,regulation:o,allowedCategories:i,vendorIdsMap:a,hasMadeAnyChoice:u,vendorsStatuses:l,essentialPurposeIds:d})),this.enableTags({customVariables:t,requiredVendors:n,isConsentRequired:r,userStatus:s,regulation:o,allowedCategories:i,vendorIdsMap:a,hasMadeAnyChoice:u,vendorsStatuses:l,essentialPurposeIds:d})}enableTags(e){var{customVariables:t,requiredVendors:n,isConsentRequired:r,userStatus:o,regulation:d,allowedCategories:c,vendorIdsMap:p,hasMadeAnyChoice:v,vendorsStatuses:f,essentialPurposeIds:h}=e,{vendorsByStatusWithPurposes:g,vendorsByStatusWithoutPurposes:m}=(0,u.R)({requiredVendors:n,isConsentRequired:r,userStatus:o,hasMadeAnyChoice:v,vendorsStatuses:f,essentialPurposeIds:h,processingRules:(0,l.k)()}),b=[{attribute:"data-category",values:c},{attribute:"data-vendor",values:(0,s.$)([...g.allowed,...g.allowed.map(e=>p[(0,i.b)(e)])])},{attribute:"data-vendor-raw",values:(0,s.$)([...m.allowed,...m.allowed.map(e=>p[(0,i.b)(e)])])},{attribute:"data-purposes",attributeIsList:!0,values:(0,a.V)(t.didomiPurposesEnabled)}],y={gdpr:t.didomiGDPRApplies,gdpr_consent:t.didomiIABConsent,regulation_name:t.didomiRegulationName};this.enableTagsByName('script[type="didomi/javascript"]',"script",b,y),this.enableTagsByName('script[type="didomi/html"]',"div",b,y)}enableTagsByName(e,t,n,s){var o=this,i=document.querySelectorAll(e),a=function(e){var i=!0;"true"!==e.getAttribute("data-processed")&&(n.filter(t=>{var{attribute:n}=t;return e.hasAttribute(n)}).map(t=>{var{attribute:n,attributeIsList:a,values:u}=t;if("immediate"===e.getAttribute("data-loading")||u.length>0){var l=e.getAttribute(n);if("data-vendor"===n&&(s=(0,r.A)({},s,o.addVendorsRelatedMacros(-1!==u.indexOf(String(l))))),"data-vendor-raw"===n&&(s=(0,r.A)({},s,o.addVendorsRawRelatedMacros(-1!==u.indexOf(String(l))))),"immediate"!==e.getAttribute("data-loading"))if(!0===a){var d=String(l).split(","),c=!0;for(var p of d)p.length>0&&(c=c&&-1!==u.indexOf(String(p)));!1===c&&(i=!1)}else-1===u.indexOf(String(l))&&(i=!1)}else i=!1;return null}),!0===i&&o.replaceTags(t,e,s))};for(var u of i)a(u)}replaceMacros(e,t){for(var n of Object.keys(e)){var r=new RegExp("{"+n+"}","gi");t=t.replace(r,e[n])}return t}replaceTags(e,t,n){var r=document.createElement(e),s=this.replaceMacros(n,t.innerHTML);if("script"===e){var i;r.type="text/javascript";var a=null==(i=o.U.value)?void 0:i.nonce;a&&r.setAttribute("nonce",a),r.textContent=s}else r.innerHTML=s;for(var u of t.attributes)"type"!==u.name&&r.setAttribute(u.name,u.value);t.parentNode.insertBefore(r,t),t.setAttribute("data-processed","true")}addVendorsRelatedMacros(e){return{gdpr_consent_vendor:e?1:0,gdpr_consent_vendor_boolean:e}}addVendorsRawRelatedMacros(e){return{gdpr_consent_vendor_raw:e?1:0,gdpr_consent_vendor_boolean_raw:e}}}},1081:function(e,t,n){"use strict";function r(e,t){return e===t}n.d(t,{Mz:function(){return s}});var s=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:r,n=null,s=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,s=0;s[...new Set([...s.C.value||[],...o.D.value||[],...i.K.value||[]])])},3330:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(16691),s=()=>{var e=(new Date).toISOString();return{user_id:(0,r.A)(),created:e,updated:e,vendors:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},version:null}}},3342:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r=(e,t,n)=>{var r=Array.isArray(e.legIntPurposeIds)&&e.legIntPurposeIds.length>0,s=Array.isArray(e.purposeIds)&&e.purposeIds.length>0,o=!0;if(n.includes("legitimate_interest")&&(r||s&&!n.includes("consent"))){var i,a,u,l,d=null==(i=t.byLegalBasis)||null==(a=i.li)?void 0:a.vendors;if(null!=d&&null!=(u=d.disabled)&&u.includes(e.id))return!1;null!=d&&null!=(l=d.enabled)&&l.includes(e.id)||(o=void 0)}if(n.includes("consent")&&s){var c,p,v,f,h=null==(c=t.byLegalBasis)||null==(p=c.consent)?void 0:p.vendors;if(null!=h&&null!=(v=h.disabled)&&v.includes(e.id))return!1;null!=h&&null!=(f=h.enabled)&&f.includes(e.id)||(o=void 0)}return o},s=e=>{var{requiredVendors:t,isConsentRequired:n,userStatus:s,hasMadeAnyChoice:o,vendorsStatuses:i,essentialPurposeIds:a=[],processingRules:u=["legitimate_interest","consent"]}=e,l={allowed:[],denied:[],unknown:[]},d={allowed:[],denied:[],unknown:[]},c=(null==i?void 0:i.currentUserStatusEnabledVendorIds)||[],p=(null==i?void 0:i.currentUserStatusDisabledVendorIds)||[],v=!u.includes("consent");for(var f of t){var h=void 0;h="didomi"===f.namespace||"iab"===f.namespace?f.namespace+":"+f.id:f.id;var g=[...f.purposeIds||[],...f.legIntPurposeIds||[]],m=0===g.length&&Array.isArray(f.specialPurposeIds)&&f.specialPurposeIds.length>0,b=g.length>0&&g.every(e=>a.includes(e)),y=Array.isArray(f.purposeIds)&&f.purposeIds.length>0&&(!Array.isArray(f.legIntPurposeIds)||0===f.legIntPurposeIds.length),_=Array.isArray(f.legIntPurposeIds)&&f.legIntPurposeIds.length>0&&(!Array.isArray(f.purposeIds)||0===f.purposeIds.length),I=y&&v,S=m||b||_||!I&&(!n||v),w=r(f,s,u);if(m||b?l.allowed.push(h):o?c.includes(f.id)?l.allowed.push(h):p.includes(f.id)?l.denied.push(h):S?l.allowed.push(h):l.unknown.push(h):!1===w?l.denied.push(h):S?l.allowed.push(h):l.unknown.push(h),m||b)d.allowed.push(h);else{var A=w;I&&(A=o?!!c.includes(f.id)||!p.includes(f.id)&&void 0:void 0),!0===A?d.allowed.push(h):!1===A?d.denied.push(h):S?d.allowed.push(h):d.unknown.push(h)}}return{vendorsByStatusWithPurposes:l,vendorsByStatusWithoutPurposes:d}}},4609:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var r=n(20259),s=n(34576),o=e=>(e=>{var t=e.chrome,n=e.navigator,r=n.vendor,s=void 0!==e.opr,o=n.userAgent.indexOf("Edge")>-1;return!n.userAgent.match("CriOS")&&null!=t&&"Google Inc."===r&&!1===s&&!1===o})(e)&&((e=>{var t=/Chrome\/([0-9]{2,3})\./i.exec(e);return t?parseInt(t[1],10):null})(e.navigator.userAgent)||0)>=79,i=n(87127),a=(0,s.EW)(()=>{var e,t,n,s,a,u,l,d,c=null==(e=r.bK.value)?void 0:e.cookies;return{secure:!0===(null==c?void 0:c.secure),sameSiteRequired:o(window),sources:{cookies:!1!==(null==c||null==(t=c.storageSources)?void 0:t.cookies),localStorage:!1!==(null==c||null==(n=c.storageSources)?void 0:n.localStorage)},local:{customDomain:"string"==typeof(null==c||null==(s=c.local)?void 0:s.customDomain)?null==c||null==(a=c.local)?void 0:a.customDomain:(0,i.zd)(document.location.hostname)},thirdParty:{enabled:!0===(null==c||null==(u=c.group)?void 0:u.enabled),customDomain:"string"==typeof(null==c||null==(l=c.group)?void 0:l.customDomain)?null==c||null==(d=c.group)?void 0:d.customDomain:null}}})},4640:function(e,t,n){"use strict";n.d(t,{w:function(){return a}});var r=n(34576),s=n(25159),o={crawlers:/googlebot|adsbot|feedfetcher|mediapartners|bingbot|bingpreview|slurp|linkedinbot|msnbot|teoma|alexabot|exabot|facebot|facebook|Twitterbot|yandex|baidu|duckduckbot|qwantify|qwantbot|archive|applebot|addthis|slackbot|reddit|whatsapp|pinterest|moatbot|google-xrawler|crawler|spider|crawling|oncrawl|NETVIGIE|PetalBot|PhantomJS|NativeAIBot|Cocolyzebot|SMTBot|EchoboxBot|Quora-Bot|scraper|BLP_bbot|MAZBot|ScooperBot|BublupBot|Cincraw|HeadlessChrome|diffbot|Google Web Preview|Doximity-Diffbot|Rely Bot|pingbot|cXensebot|PingdomTMS|AhrefsBot|robot|semrush|seenaptic|netvibes|taboolabot|SimplePie|APIs-Google|Google-Read-Aloud|googleweblight|DuplexWeb-Google|Google Favicon|Storebot-Google|TagInspector|Rigor|Bazaarvoice|KlarnaBot|pageburst|naver|iplabel/i,performance:/Chrome-Lighthouse|gtmetrix|speedcurve|DareBoost|PTST|StatusCake_Pagespeed_Indev/i},i=n(12321),a=(0,r.EW)(()=>{var e,t,n,r=null==i.G?void 0:i.G.value.bots;return!!r&&(e=r.types,t=r.extraUserAgents,n=navigator.userAgent,!(!Array.isArray(e)||!e.some(e=>{var t=o[e];return t?t.test(n):(console.error(s.a.didomiPrefix+'Bot detector - Bot type "'+e+'" does not exist'),!1)}))||!(!Array.isArray(t)||!t.some(e=>{try{if(!e||"string"!=typeof e)throw new Error("User-Agent cannot be null, undefined, or an empty string");return new RegExp(e).test(n)}catch(t){return console.error(s.a.didomiPrefix+'Bot detector - User-agent "'+e+'" is not a valid regular expression: '+t.message),!1}})))})},5125:function(e){"use strict";e.exports=JSON.parse('{"mP":[{"id":1,"name":"purpose_1_name","description":"purpose_1_description","illustrations":["purpose_1_illustrations_0"]},{"id":2,"name":"purpose_2_name","description":"purpose_2_description","illustrations":["purpose_2_illustrations_0","purpose_2_illustrations_1"]},{"id":3,"name":"purpose_3_name","description":"purpose_3_description","illustrations":["purpose_3_illustrations_0","purpose_3_illustrations_1"]},{"id":4,"name":"purpose_4_name","description":"purpose_4_description","illustrations":["purpose_4_illustrations_0","purpose_4_illustrations_1"]},{"id":5,"name":"purpose_5_name","description":"purpose_5_description","illustrations":["purpose_5_illustrations_0","purpose_5_illustrations_1"]},{"id":6,"name":"purpose_6_name","description":"purpose_6_description","illustrations":["purpose_6_illustrations_0","purpose_6_illustrations_1"]},{"id":7,"name":"purpose_7_name","description":"purpose_7_description","illustrations":["purpose_7_illustrations_0","purpose_7_illustrations_1"]},{"id":8,"name":"purpose_8_name","description":"purpose_8_description","illustrations":["purpose_8_illustrations_0","purpose_8_illustrations_1"]},{"id":9,"name":"purpose_9_name","description":"purpose_9_description","illustrations":["purpose_9_illustrations_0","purpose_9_illustrations_1"]},{"id":10,"name":"purpose_10_name","description":"purpose_10_description","illustrations":["purpose_10_illustrations_0","purpose_10_illustrations_1"]},{"id":11,"name":"purpose_11_name","description":"purpose_11_description","illustrations":["purpose_11_illustrations_0","purpose_11_illustrations_1"]}],"P2":[{"id":1,"name":"special_purpose_1_name","description":"special_purpose_1_description","illustrations":["special_purpose_1_illustrations_0"]},{"id":2,"name":"special_purpose_2_name","description":"special_purpose_2_description","illustrations":["special_purpose_2_illustrations_0"]},{"id":3,"name":"special_purpose_3_name","description":"special_purpose_3_description","illustrations":["special_purpose_3_illustrations_0"]}],"qT":[{"id":1,"name":"feature_1_name","description":"feature_1_description","illustrations":[]},{"id":2,"name":"feature_2_name","description":"feature_2_description","illustrations":[]},{"id":3,"name":"feature_3_name","description":"feature_3_description","illustrations":[]}],"nK":[{"id":1,"name":"special_feature_1_name","description":"special_feature_1_description","illustrations":[]},{"id":2,"name":"special_feature_2_name","description":"special_feature_2_description","illustrations":[]}],"I3":[{"id":1,"name":"stack_1_name","description":"stack_1_description"},{"id":2,"name":"stack_2_name","description":"stack_2_description"},{"id":3,"name":"stack_3_name","description":"stack_3_description"},{"id":4,"name":"stack_4_name","description":"stack_4_description"},{"id":5,"name":"stack_5_name","description":"stack_5_description"},{"id":6,"name":"stack_6_name","description":"stack_6_description"},{"id":7,"name":"stack_7_name","description":"stack_7_description"},{"id":8,"name":"stack_8_name","description":"stack_8_description"},{"id":9,"name":"stack_9_name","description":"stack_9_description"},{"id":10,"name":"stack_10_name","description":"stack_10_description"},{"id":11,"name":"stack_11_name","description":"stack_11_description"},{"id":12,"name":"stack_12_name","description":"stack_12_description"},{"id":13,"name":"stack_13_name","description":"stack_13_description"},{"id":14,"name":"stack_14_name","description":"stack_14_description"},{"id":15,"name":"stack_15_name","description":"stack_15_description"},{"id":16,"name":"stack_16_name","description":"stack_16_description"},{"id":17,"name":"stack_17_name","description":"stack_17_description"},{"id":18,"name":"stack_18_name","description":"stack_18_description"},{"id":19,"name":"stack_19_name","description":"stack_19_description"},{"id":20,"name":"stack_20_name","description":"stack_20_description"},{"id":21,"name":"stack_21_name","description":"stack_21_description"},{"id":22,"name":"stack_22_name","description":"stack_22_description"},{"id":23,"name":"stack_23_name","description":"stack_23_description"},{"id":24,"name":"stack_24_name","description":"stack_24_description"},{"id":25,"name":"stack_25_name","description":"stack_25_description"},{"id":26,"name":"stack_26_name","description":"stack_26_description"},{"id":27,"name":"stack_27_name","description":"stack_27_description"},{"id":28,"name":"stack_28_name","description":"stack_28_description"},{"id":29,"name":"stack_29_name","description":"stack_29_description"},{"id":30,"name":"stack_30_name","description":"stack_30_description"},{"id":31,"name":"stack_31_name","description":"stack_31_description"},{"id":32,"name":"stack_32_name","description":"stack_32_description"},{"id":33,"name":"stack_33_name","description":"stack_33_description"},{"id":34,"name":"stack_34_name","description":"stack_34_description"},{"id":35,"name":"stack_35_name","description":"stack_35_description"},{"id":36,"name":"stack_36_name","description":"stack_36_description"},{"id":37,"name":"stack_37_name","description":"stack_37_description"},{"id":38,"name":"stack_38_name","description":"stack_38_description"},{"id":39,"name":"stack_39_name","description":"stack_39_description"},{"id":40,"name":"stack_40_name","description":"stack_40_description"},{"id":41,"name":"stack_41_name","description":"stack_41_description"},{"id":42,"name":"stack_42_name","description":"stack_42_description"},{"id":43,"name":"stack_43_name","description":"stack_43_description"},{"id":44,"name":"stack_44_name","description":"stack_44_description"},{"id":45,"name":"stack_45_name","description":"stack_45_description"}],"DF":[{"id":1,"name":"data_category_1_name","description":"data_category_1_description"},{"id":2,"name":"data_category_2_name","description":"data_category_2_description"},{"id":3,"name":"data_category_3_name","description":"data_category_3_description"},{"id":4,"name":"data_category_4_name","description":"data_category_4_description"},{"id":5,"name":"data_category_5_name","description":"data_category_5_description"},{"id":6,"name":"data_category_6_name","description":"data_category_6_description"},{"id":7,"name":"data_category_7_name","description":"data_category_7_description"},{"id":8,"name":"data_category_8_name","description":"data_category_8_description"},{"id":9,"name":"data_category_9_name","description":"data_category_9_description"},{"id":10,"name":"data_category_10_name","description":"data_category_10_description"},{"id":11,"name":"data_category_11_name","description":"data_category_11_description"}]}')},6024:function(e,t,n){"use strict";n.d(t,{Nm:function(){return s},cO:function(){return u},cb:function(){return o},yS:function(){return a}});var r=n(50378),s="en",o=["ca","de","en","es","fr","hr","it","nl","pt","fi","cs","pl","ro","el","hu","da","sk","bg","sl","lt","sv","et","lv","tr","ru","uk","ja","vi","ar","zh-TW","zh-CN","sr","ko","th","ms","az-AZ","bn-IN","fil","he","hi-IN","id","mk-MK","pt-BR","sw","no","ar-JO","de-AT","de-CH","en-GB","en-NZ","fr-BE","fr-CA","nl-BE","sr-Latn","eu","tl","gl","mt","sq","ka","bs","cy","be","en-CA"],i={zh:"CN",az:"AZ",bn:"IN",hi:"IN",mk:"MK",pt:"BR"},a=e=>{if(!(0,r.Kg)(e))return null;var[t]=e.split("-"),n=i[t];return n?t+"-"+n:null},u=e=>{if(!(0,r.Kg)(e))return e;var t,[n,s,i]=e.split("-"),u=[e,s&&n+"-"+s,i&&n+"-"+i,n,a(n)],l=function(e){var t=e&&o.find(t=>t.toLowerCase()===e.toLowerCase());if(t)return{v:t}};for(var d of u)if(t=l(d))return t.v;return n}},6136:function(e,t,n){"use strict";n.r(t),n.d(t,{initIABTCFCmpAPI:function(){return ne},updateIABTCFCmpApi:function(){return ee}});var r,s,o,i,a,u,l,d,c,p,v=!0,f=!0,h=()=>f,g="",m=()=>g,b=()=>o,y=1,_=7,I=1,S=!1,w=!1,A=()=>u;!function(e){e.PING="ping",e.GET_TC_DATA="getTCData",e.GET_IN_APP_TC_DATA="getInAppTCData",e.GET_VENDOR_LIST="getVendorList",e.ADD_EVENT_LISTENER="addEventListener",e.REMOVE_EVENT_LISTENER="removeEventListener"}(l||(l={})),function(e){e.STUB="stub",e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"}(d||(d={})),function(e){e.VISIBLE="visible",e.HIDDEN="hidden",e.DISABLED="disabled"}(c||(c={})),function(e){e.TC_LOADED="tcloaded",e.CMP_UI_SHOWN="cmpuishown",e.USER_ACTION_COMPLETE="useractioncomplete"}(p||(p={}));class C{constructor(e,t,n,r){this.listenerId=void 0,this.callback=void 0,this.next=void 0,this.param=void 0,this.success=!0,Object.assign(this,{callback:e,listenerId:n,param:t,next:r});try{this.respond()}catch(e){this.invokeCallback(null)}}invokeCallback(e){var t=null!==e;"function"==typeof this.next?this.callback(this.next,e,t):this.callback(e,t)}}class P extends C{respond(){this.throwIfParamInvalid(),this.invokeCallback(new L(this.param,this.listenerId))}throwIfParamInvalid(){if(!(void 0===this.param||Array.isArray(this.param)&&this.param.every(Number.isInteger)))throw new Error("Invalid Parameter")}}class k{constructor(e){this.name=void 0,this.recalculations=void 0,this.cache=void 0,this.name=e,this.recalculations=0,this.cache=new Map}get(e,t){var n=this.cache.get(e);if(n)return n;for(var r=arguments.length,s=new Array(r>2?r-2:0),o=2;o{new P(e.callback,e.param,t,e.next)})}clear(){this.queueNumber=0,this.eventQueue.clear()}get size(){return this.eventQueue.size}},E.cmpStatus=d.LOADING,E.disabled=!1,E.displayStatus=c.HIDDEN,E.cmpId=void 0,E.cmpVersion=void 0,E.eventStatus=void 0,E.gdprApplies=void 0,E.tcModel=void 0,E.tcString=void 0,E.restrictionsCache=new class{constructor(){this.cacheBuckets=void 0,this.cacheBuckets=new Map}getBucket(e){var t=this.cacheBuckets.get(e);return t||(t=new k(e),this.cacheBuckets.set(e,t)),t}clear(){this.cacheBuckets.forEach(e=>e.clear())}numberOfBuckets(){return this.cacheBuckets.size}size(){var e=0;return this.cacheBuckets.forEach(t=>e+=t.size()),e}};class O{constructor(){this.cmpId=E.cmpId,this.cmpVersion=E.cmpVersion,this.gdprApplies=E.gdprApplies,this.tcfPolicyVersion=E.tcfPolicyVersion}}class T extends O{constructor(){super(...arguments),this.cmpStatus=d.ERROR}}class L extends O{constructor(e,t){super(),this.tcString=void 0,this.listenerId=void 0,this.eventStatus=void 0,this.cmpStatus=void 0,this.isServiceSpecific=void 0,this.useNonStandardTexts=void 0,this.publisherCC=void 0,this.purposeOneTreatment=void 0,this.outOfBand=void 0,this.purpose=void 0,this.vendor=void 0,this.specialFeatureOptins=void 0,this.publisher=void 0,this.eventStatus=E.eventStatus,this.cmpStatus=E.cmpStatus,this.listenerId=t;var n=E.restrictionsCache.getBucket(this.constructor.name);if(E.gdprApplies){var r=E.tcModel;this.tcString=E.tcString,this.isServiceSpecific=r.isServiceSpecific,this.useNonStandardTexts=r.useNonStandardTexts,this.purposeOneTreatment=r.purposeOneTreatment,this.publisherCC=r.publisherCountryCode;var s=n.get(this.tcString,this.createRestrictions.bind(this),r.publisherRestrictions);!1===this.isServiceSpecific&&(this.outOfBand={allowedVendors:this.createVectorField(r.vendorsAllowed,e),disclosedVendors:this.createVectorField(r.vendorsDisclosed,e)}),this.purpose={consents:this.createVectorField(r.purposeConsents),legitimateInterests:this.createVectorField(r.purposeLegitimateInterests)},this.vendor={consents:this.createVectorField(r.vendorConsents,e),legitimateInterests:this.createVectorField(r.vendorLegitimateInterests,e),disclosedVendors:this.createVectorField(r.vendorsDisclosed,e)},this.specialFeatureOptins=this.createVectorField(r.specialFeatureOptins),this.publisher={consents:this.createVectorField(r.publisherConsents),legitimateInterests:this.createVectorField(r.publisherLegitimateInterests),customPurpose:{consents:this.createVectorField(r.publisherCustomConsents),legitimateInterests:this.createVectorField(r.publisherCustomLegitimateInterests)},restrictions:s}}}createRestrictions(e){var t={};if(e.numRestrictions>0)for(var n=e.getMaxVendorId(),r=function(){var n=s.toString();e.getRestrictions(s).forEach(e=>{var r=e.purposeId.toString();t[r]||(t[r]={}),t[r][n]=e.restrictionType})},s=1;s<=n;s++)r();return t}createVectorField(e,t){return t?t.reduce((t,n)=>(t[String(n)]=e.has(Number(n)),t),{}):[...e].reduce((e,t)=>(e[t[0].toString(10)]=t[1],e),{})}}class x extends L{constructor(e){super(e),delete this.outOfBand}createVectorField(e){return[...e].reduce((e,t)=>e+=t[1]?"1":"0","")}createRestrictions(e){var t={};if(e.numRestrictions>0){var n=e.getMaxVendorId();e.getRestrictions().forEach(e=>{t[e.purposeId.toString()]="_".repeat(n)});for(var r=function(n){var r=n+1;e.getRestrictions(r).forEach(e=>{var r=e.restrictionType.toString(),s=e.purposeId.toString(),o=t[s].substr(0,n),i=t[s].substr(n+1);t[s]=o+r+i})},s=0;s{this.invokeCallback(e.getJson())})}},F[V]=class extends P{respond(){this.listenerId=E.eventQueue.add({callback:this.callback,param:this.param,next:this.next}),super.respond()}},F[j]=class extends C{respond(){this.invokeCallback(E.eventQueue.remove(this.param))}};class z{static has(e){return"string"==typeof e&&(e=Number(e)),this.set_.has(e)}}z.set_=new Set([0,2,void 0,null]);var W="__tcfapi";class G{constructor(e){if(this.callQueue=void 0,this.customCommands=void 0,e){var t=l.ADD_EVENT_LISTENER;if(null!=e&&e[t])throw new Error("Built-In Custom Commmand for "+t+" not allowed: Use "+l.GET_TC_DATA+" instead");if(t=l.REMOVE_EVENT_LISTENER,null!=e&&e[t])throw new Error("Built-In Custom Commmand for "+t+" not allowed");null!=e&&e[l.GET_TC_DATA]&&(e[l.ADD_EVENT_LISTENER]=e[l.GET_TC_DATA]),this.customCommands=e}try{this.callQueue=window[W]()||[]}catch(e){this.callQueue=[]}finally{window[W]=this.apiCall.bind(this),this.purgeQueuedCalls()}}apiCall(e,t,n){for(var r=arguments.length,s=new Array(r>3?r-3:0),o=3;o{window[W](...e)})}isCustomCommand(e){return this.customCommands&&"function"==typeof this.customCommands[e]}isBuiltInCommand(e){return void 0!==F[e]}}class H{constructor(e,t,n,r){void 0===n&&(n=!0),this.callResponder=void 0,this.isServiceSpecific=void 0,this.numUpdates=0,this.throwIfInvalidInt(e,"cmpId",2),this.throwIfInvalidInt(t,"cmpVersion",0),E.cmpId=e,E.cmpVersion=t,E.tcfPolicyVersion=5,this.isServiceSpecific=!!n,this.callResponder=new G(r)}throwIfInvalidInt(e,t,n){if(!("number"==typeof e&&Number.isInteger(e)&&e>=n))throw new Error("Invalid "+t+": "+e)}update(e,t){if(void 0===t&&(t=!1),E.disabled)throw new Error("CmpApi Disabled");E.cmpStatus=d.LOADED,t?(E.displayStatus=c.VISIBLE,E.eventStatus=p.CMP_UI_SHOWN):void 0===E.tcModel?(E.displayStatus=c.DISABLED,E.eventStatus=p.TC_LOADED):(E.displayStatus=c.HIDDEN,E.eventStatus=p.USER_ACTION_COMPLETE),E.gdprApplies=null!==e,E.gdprApplies?(""===e?(E.tcModel=new M.jT,E.tcModel.cmpId=E.cmpId,E.tcModel.cmpVersion=E.cmpVersion):E.tcModel=M.de.decode(e),E.tcModel.isServiceSpecific=this.isServiceSpecific,E.tcfPolicyVersion=Number(E.tcModel.policyVersion),E.tcString=e):E.tcModel=null,0===this.numUpdates?this.callResponder.purgeQueuedCalls():E.eventQueue.exec(),this.numUpdates++}disable(){E.disabled=!0,E.cmpStatus=d.ERROR}}var K=(e,t,n)=>{if(t&&(e=>e.gdprApplies&&e.eventStatus===p.TC_LOADED&&(e.tcString===m()||w))(t)){if(null!==t.listenerId)return null;t.eventStatus=p.CMP_UI_SHOWN}var r=s;t&&"function"==typeof r&&(t.addtlConsent=r()),t&&S&&(t.enableAdvertiserConsentMode=!0),e(t,n)},J=e=>e.replace(/&/g,"&").replace(//g,">").replace(/'/g,"'"),q=e=>{if("object"==typeof e){var t=JSON.stringify(e);return JSON.parse(J(t))}return"string"==typeof e?J(e):e};function Z(e){return Array.isArray(e)?e.map(e=>q(e)):"string"==typeof e?q(e):e}function $(e,t,n,r){var s;void 0===r&&(r=void 0);var o=r=>function(e,t,n,r){if(r&&r.data){var s,o="string"==typeof r.data;try{s=o?JSON.parse(r.data):r.data}catch(e){return}if(s[e]){var i=s[e];n(i.command,Z(i.parameter),(e,n)=>{var s={[t]:{returnValue:e,success:n,callId:i.callId}};r.source&&"function"==typeof r.source.postMessage?r.source.postMessage(o?JSON.stringify(s):s,"*"):window.postMessage(o?JSON.stringify(s):s,"*")},2,!1)}}}(e,t,n,r);if(window.addEventListener?window.addEventListener("message",o,!1):null===(s=window.attachEvent)||void 0===s||s.call(window,"onmessage",o),window.DidomiSanitizing={sanitizeString:Z},Array.isArray(r)&&r.length>0)for(var i of r)n(i.command,Z(i.parameter),i.callback,i.version,!0)}var Y,Q=(e,t,n,r,s)=>{if("function"==typeof n){var o=b(),i=A(),a=t,u=r;-1===n.toString().indexOf("postMessage")&&s&&1===y&&(a=r,u=t),u=(e=>"null"===e?null:e)(u),(null==o?void 0:o.enabledTCFAPIErrorLogging)?null==i||i.apiCall(e,u,(e=>function(){try{e(...arguments)}catch(e){console.error("Callback error at TCF API execution",e)}})(n),a):null==i||i.apiCall(e,u,n,a)}},X=(e,t)=>Y?Y.uiVisible===e&&Y.encodedTCString===t||(Y.uiVisible=e,Y.encodedTCString=t,!1):(Y={uiVisible:e,encodedTCString:t},!1),ee=e=>{var t,n,s=a;if(!s||!r)return null;var o=null!==(n=null!==(t=r())&&void 0!==t?t:m())&&void 0!==n?n:null;if(X(e,o))return null;s.update(h()?o:null,e)},te=()=>{var e=b();if(void 0===A()&&(void 0===(t=e)&&(t=void 0),!1!==(null===(r=null===(n=null==t?void 0:t.vendors)||void 0===n?void 0:n.iab)||void 0===r?void 0:r.enabled)||!h())&&!function(e){var t,n;return void 0===e&&(e=void 0),null===(n=null===(t=null==e?void 0:e.vendors)||void 0===t?void 0:t.iab)||void 0===n?void 0:n.disableTCFAPI}(e)){var t,n,r,s=new H(_,I,!0,{getTCData:K});if((e=>{a=e})(s),ee(!1),(e=>{u=e})(s.callResponder),window.__tcfapi=(e,t,n,r)=>Q(e,r,n,t,!1),v){"function"==typeof i&&i()}$("__tcfapiCall","__tcfapiReturn",Q,window.__tcfapiBuffer)}},ne=(e,t)=>{var n,{cmpId:a,cmpVersion:u,isConsentRequired:l,isGDPRApplied:d,defaultConsentString:c,consentStringGetter:p,additionalConsentStringGetter:h,sdkEventListenersSetter:m,enableAdvertiserConsentMode:b,willAutoShowNotice:A}=null!=t?t:{};if((e=>{"boolean"==typeof e&&(v=e)})(l),(e=>{"boolean"==typeof e&&(f=e)})(d),(e=>{"string"==typeof e&&(g=e)})(c),(e=>{s=e})(h),(e=>{o=e})(e),(e=>{"number"==typeof e&&(y=e)})(null===(n=window.__tcfapi)||void 0===n?void 0:n.stubVersion),(e=>{i="function"==typeof e?e:()=>{}})(m),(e=>{"number"==typeof e&&(_=e)})(a),(e=>{"number"==typeof e&&(I=e)})(u),(e=>{S=e})(null!=b&&b),(e=>{w=e})(!0===A),!p||"function"!=typeof p)throw Error("Didomi - consentStringGetter function must be provided in options for initIABTCFCmpAPI");(e=>{r=e})(p),te()}},6263:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(58168),s=n(98587),o=n(34576),i=n(93271),a=n(71859),u=n(34956),l=n(9757),d=["id"],c=(0,o.EW)(()=>{var e,t;return null!=(e=u.h.value)&&e.length&&i.bV.value?null==(t=u.h.value)?void 0:t.map(e=>{var t,n,o,u,c,p,v,f=(null==(t=i.bV.value)?void 0:t.find(t=>t.id===e.id||t.id===l.le[e.id]))||{},h=(0,s.A)(f,d);"google"===e.id&&delete e.policyUrl;var g=h.urls||e.urls,m=null!=(n=null!=(o=null!=(u=null==g||null==(c=g.find(e=>e.langId===a.H.value))?void 0:c.privacy)?u:null==g||null==(p=g.find(e=>"en"===e.langId))?void 0:p.privacy)?o:null==g||null==(v=g[0])?void 0:v.privacy)?n:e.policyUrl;return(0,r.A)({},e,h,m?{policyUrl:m}:{})}):null})},8035:function(e,t,n){"use strict";var r;n.d(t,{e:function(){return s},k:function(){return r}});var s=e=>{r=e}},9757:function(e,t,n){"use strict";n.d(t,{FG:function(){return p},H2:function(){return d},KX:function(){return l},LN:function(){return i},PL:function(){return m},RQ:function(){return a},VF:function(){return o},br:function(){return f},cu:function(){return h},eL:function(){return s},gS:function(){return u},in:function(){return g},le:function(){return b},x4:function(){return c}});var r=n(50378),s={Cookies:"cookies",CookiesAnalytics:"cookies_analytics",CookiesMarketing:"cookies_marketing",CookiesSocial:"cookies_social",AdvertisingPersonalization:"advertising_personalization",Analytics:"analytics",ContentPersonalization:"content_personalization",AdDelivery:"ad_delivery",DeviceAccess:"device_access",OfflineMatch:"offline_match",LinkDevices:"link_devices",PreciseGeo:"precise_geo",SelectBasicAds:"select_basic_ads",CreateAdsProfile:"create_ads_profile",SelectPersonalizedAds:"select_personalized_ads",CreateContentProfile:"create_content_profile",SelectPersonalizedContent:"select_personalized_content",MeasureAdPerformance:"measure_ad_performance",MeasureContentPerformance:"measure_content_performance",MarketResearch:"market_research",ImproveProducts:"improve_products",UseLimitedDataToSelectContent:"use_limited_data_to_select_content"},o={consentOnly:0,consentAndLegitimateInterest:1},i={[s.Cookies]:1,[s.CookiesAnalytics]:1,[s.CookiesMarketing]:1,[s.CookiesSocial]:1,[s.SelectBasicAds]:2,[s.CreateAdsProfile]:3,[s.SelectPersonalizedAds]:4,[s.CreateContentProfile]:5,[s.SelectPersonalizedContent]:6,[s.MeasureAdPerformance]:7,[s.MeasureContentPerformance]:8,[s.MarketResearch]:9,[s.ImproveProducts]:10,[s.UseLimitedDataToSelectContent]:11},a={1:s.Cookies,2:s.SelectBasicAds,3:s.CreateAdsProfile,4:s.SelectPersonalizedAds,5:s.CreateContentProfile,6:s.SelectPersonalizedContent,7:s.MeasureAdPerformance,8:s.MeasureContentPerformance,9:s.MarketResearch,10:s.ImproveProducts,11:s.UseLimitedDataToSelectContent},u={[s.Cookies]:1,[s.SelectBasicAds]:2,[s.CreateAdsProfile]:3,[s.SelectPersonalizedAds]:4,[s.CreateContentProfile]:5,[s.SelectPersonalizedContent]:6,[s.MeasureAdPerformance]:7,[s.MeasureContentPerformance]:8,[s.MarketResearch]:9,[s.ImproveProducts]:10};function l(e){for(var t of Object.keys(i))if(String(e)===String(i[t]))return t;return null}var d={GeolocationData:"geolocation_data",DeviceCharacteristics:"device_characteristics"},c={[d.GeolocationData]:1,[d.DeviceCharacteristics]:2},p={1:d.GeolocationData,2:d.DeviceCharacteristics},v=Object.keys(c);Object.keys(u);function f(e){return"iab"===e.namespace||!!e.namespaces&&(!!e.namespaces.iab||!!e.namespaces.iab2)}function h(e){return!!(0,r.Jt)(e,"namespaces.google.current")}function g(e){if("iab"===e.namespace){var t="number"==typeof e.id?e.id:parseInt(e.id,10);if(t)return t}else if(e.namespaces){if("number"==typeof e.namespaces.iab)return e.namespaces.iab;if("number"==typeof e.namespaces.iab2)return e.namespaces.iab2}return null}function m(e){for(var t of v)if(String(e)===String(c[t]))return t;return null}var b={google:755,salesforce:506}},10379:function(e,t,n){"use strict";n.d(t,{A2:function(){return o},LL:function(){return s}});var r=n(50378),s=e=>(0,r.Et)(e)&&e>0,o=e=>null==e?void 0:e.sort((e,t)=>{var{name:n}=e,{name:r}=t;return n.localeCompare(r)})},10467:function(e,t,n){"use strict";function r(e,t,n,r,s,o,i){try{var a=e[o](i),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,s)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(s,o){var i=e.apply(t,n);function a(e){r(i,s,o,a,u,"next",e)}function u(e){r(i,s,o,a,u,"throw",e)}a(void 0)})}}n.d(t,{A:function(){return s}})},10747:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(58168);class s{constructor(e){this.dataLayerName="dataLayer",e&&"string"==typeof e.dataLayerName&&e.dataLayerName.length>0&&(this.dataLayerName=e.dataLayerName),window[this.dataLayerName]||(window[this.dataLayerName]=[])}pushToDataLayer(e){window[this.dataLayerName]&&"function"==typeof window[this.dataLayerName].push&&window[this.dataLayerName].push(e)}sendCookiesConsentEvent(e){0===(null==e?void 0:e.length)||1===e.length&&"essential"===e[0]||this.pushToDataLayer({event:"didomi-cookies-consent",didomiCookiesConsent:e.join(",")})}update(e){var{type:t="didomi-consent-changed",customVariables:n={},allowedCategories:s=[]}=e;this.sendCookiesConsentEvent(s),this.pushToDataLayer((0,r.A)({event:"didomi-consent"},n)),this.pushToDataLayer((0,r.A)({event:t},n))}}},11843:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(20259),s=(0,n(34576).EW)(()=>{var e;return null==(e=r.bK.value)?void 0:e.regulation})},12321:function(e,t,n){"use strict";n.d(t,{G:function(){return c}});var r=n(34576),s=n(20259),o=n(52477),i=n(50378),a=n(23187),u=n(88517),l=n(25159),d={authToken:null,organizationId:null,auth:{tokenName:"token"},bots:{consentRequired:!0,types:["crawlers","performance"],extraUserAgents:[]},externalConsent:{enabled:!1,value:null},ignoreConsentBefore:null,synchronizedUsers:[],dcsUser:null},c=(0,r.EW)(()=>{var e,t,n,r,u,c=(0,i.Go)(null==(e=s.bK.value)?void 0:e.user),p=null==(t=s.bK.value)?void 0:t.synchronizedUsers;(0,i.Im)(c)&&(c=d),p&&Array.isArray(p)&&p.length?c.synchronizedUsers=p:c.synchronizedUsers=d.synchronizedUsers;var v=c.dcsUser||(null==(n=s.bK.value)?void 0:n.dcsUser);c.dcsUser="object"!=typeof v?d.dcsUser:v;var f=null==(r=s.bK.value)||null==(u=r.user)?void 0:u.externalConsent;f&&"function"==typeof f.value&&(c.externalConsent.value=f.value);var{authToken:h,organizationUserIdExp:g,ignoreConsentBefore:m}=c;if(h){var b=(0,a.K9)(h);b&&(c.organizationId=b.organization_id,c.organizationUserId=b.sub)}return null!==c.organizationUserId&&""!==c.organizationUserId||(delete c.organizationUserId,console.error(l.a.didomiPrefix+'Authorization Parameters configuration: Invalid Organization User Id "'+c.organizationUserId+'". The value will be ignored')),g&&!(0,i.Et)(g)&&(delete c.organizationUserIdExp,console.error(l.a.didomiPrefix+'Authorization Parameters configuration: Invalid Organization User Digest Expired timestamp "'+g+'". The value will be ignored')),m&&(c.ignoreConsentBefore=(0,o.u)(m)||null),(0,i.or)(d,c)});(0,r.QZ)(()=>{c.value.id&&c.value.id!==u.J.value&&(0,u.C)(c.value.id)})},12880:function(e,t,n){"use strict";n.d(t,{D:function(){return h}});var r=n(56834),s=n(83960),o=n(24310),i=n(76381),a=n(28221),u=n(59113),l=n(70949),d=n(90923),c=e=>Array.isArray(e)&&e.length>0,p=e=>void 0!==e&&void 0===e.deletedDate,v=function(e,t){if(void 0===t&&(t=!0),"object"!=typeof s._B||"object"!=typeof s.Hd||"object"!=typeof i.B)throw new Error("Didomi - IAB TCF not initialized");var n={vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},created:e.created.toISOString(),updated:e.lastUpdated.toISOString()},r=Object.values(i.B.didomiVendorIdsMapping),o=new Set((0,d.R)()),a=new Set((e=>Object.keys(e.vendors).reduce((t,n)=>{var r=e.vendors[n];return r&&r.specialPurposes.length>0&&0===r.purposes.length&&0===r.legIntPurposes.length&&0===r.specialFeatures.length&&t.push(r.id),t},[]))(s.Hd));return[...e.vendorConsents].forEach(e=>{var[t,o]=e;if(!r.includes(t))if(o)n.vendors.enabled.push(t);else{var i=null==s.Hd?void 0:s.Hd.vendors[t];c(null==i?void 0:i.purposes)&&p(i)&&n.vendors.disabled.push(t)}}),[...e.vendorLegitimateInterests].forEach(e=>{var[t,o]=e;if(!r.includes(t)&&!a.has(t))if(o)n.vendors_li.enabled.push(t);else{var i=null==s.Hd?void 0:s.Hd.vendors[t];c(null==i?void 0:i.legIntPurposes)&&p(i)&&n.vendors_li.disabled.push(t)}}),[...e.purposeConsents].forEach(e=>{var[t,r]=e,s=u.o[t];s&&(r?n.purposes.enabled.push(s):n.purposes.disabled.push(s))}),[...e.purposeLegitimateInterests].forEach(e=>{var[t,r]=e,s=u.o[t];s&&(r&&!o.has(t)?n.purposes_li.enabled.push(s):o.has(t)||n.purposes_li.disabled.push(s))}),t&&[...e.specialFeatureOptins].forEach(e=>{var[t,r]=e,s=l.S[t];s&&(r?n.purposes.enabled.push(s):n.purposes.disabled.push(s))}),(e=>Object.keys(e.vendors).reduce((t,n)=>{var r=e.vendors[n];return r&&r.specialFeatures.length>0&&0===r.purposes.length&&t.push(r.id),t},[]))(s.Hd).forEach(t=>{var r,o=null===(r=null==s.Hd?void 0:s.Hd.vendors[t])||void 0===r?void 0:r.specialFeatures;!e.vendorConsents.has(t)&&(null==o?void 0:o.every(t=>e.specialFeatureOptins.has(t)))?n.vendors.enabled.push(t):e.vendorConsents.has(t)||n.vendors.disabled.push(t)}),n},f=n(81509),h=(e,t)=>{var n,u,l,d,c,p;if("object"!=typeof s._B||"object"!=typeof s.Hd||"object"!=typeof i.B)throw new Error("Didomi - IAB TCF not initialized");var h={vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},created:e.created.toISOString(),updated:e.lastUpdated.toISOString()},g=Object.values(i.B.didomiVendorIdsMapping),m=null===(n=null==t?void 0:t.includeSpecialFeatures)||void 0===n||n,b=null!==(u=null==t?void 0:t.vendorsNotDisclosedSetUndefined)&&void 0!==u&&u,y=(t,n)=>{b&&!e.vendorsDisclosed.has(t)||n.push(t)};if(void 0===a.B)return v(e,m);var _=[...new Set([...a.B.purposes.optin,...null!==(d=null===(l=null==f.W?void 0:f.W.processingRules)||void 0===l?void 0:l.optin)&&void 0!==d?d:[]])],I=[...new Set([...a.B.purposes.optout,...null!==(p=null===(c=null==f.W?void 0:f.W.processingRules)||void 0===c?void 0:c.optout)&&void 0!==p?p:[]])];for(var S of a.B.vendors.optin){var w="number"==typeof S?S:void 0;w&&!g.includes(w)&&(e.vendorConsents.has(w)?h.vendors.enabled.push(w):y(w,h.vendors.disabled))}for(var A of a.B.vendors.optout){var C="number"==typeof A?A:void 0;C&&!g.includes(C)&&(e.vendorLegitimateInterests.has(C)?h.vendors_li.enabled.push(C):y(C,h.vendors_li.disabled))}for(var P of _){var k=r.P[P];if(k)e.purposeConsents.has(k)?h.purposes.enabled.push(P):h.purposes.disabled.push(P);else{var E=o.F[P];E&&m&&(e.specialFeatureOptins.has(E)?h.purposes.enabled.push(P):h.purposes.disabled.push(P))}}for(var O of I){var T=r.P[O];T&&(e.purposeLegitimateInterests.has(T)?h.purposes_li.enabled.push(O):h.purposes_li.disabled.push(O))}for(var L of a.B.vendors.specialFeatures){var x=null==s.Hd?void 0:s.Hd.vendors[L];x&&(e.vendorConsents.has(x.id)||x.specialFeatures.every(t=>e.specialFeatureOptins.has(t))?h.vendors.enabled.push(x.id):e.vendorConsents.has(x.id)||y(x.id,h.vendors.disabled))}return h}},14004:function(e,t,n){"use strict";n.d(t,{y:function(){return l}});var r=n(20152),s=n(15067),o=n(11843),i=n(91963),a=n(34576),u=n(83587),l=(0,a.EW)(()=>{var e,t,n;return"none"!==(null==(e=o.r.value)?void 0:e.name)&&(u.o.value?(null==(n=s.t.value)?void 0:n.spiPurposeIdsBasedOnConsent.length)>0:!i.p.value&&(!0===r.U.value.ignoreCountry||"gdpr"===(null==(t=o.r.value)?void 0:t.name)))})},15067:function(e,t,n){"use strict";n.d(t,{t:function(){return f}});var r=n(58168),s=n(34576),o=n(98074),i=n(78691),a=n(73412),u=n(77396),l=(0,s.EW)(()=>u.T.value.map(e=>a.m.value[e])),d=n(11843),c=n(26149),p=n(63364),v=e=>e&&"personalDataType"===e.type,f=(0,s.EW)(()=>{var e={purposes:new Set,purposeIds:new Set,purposesBasedOnConsent:new Set,purposeIdsBasedOnConsent:new Set,purposesBasedOnLI:new Set,purposeIdsBasedOnLI:new Set,purposeIdsFirstParty:new Set,spiPurposes:new Set,spiPurposeIds:new Set,spiPurposeIdsBasedOnConsent:new Set,spiPurposeIdsBasedOnLI:new Set};for(var t of c.H$.value.operators){if(Array.isArray(t.legIntPurposeIds))for(var n of t.legIntPurposeIds){var s,f=null==(s=a.m.value)?void 0:s[n],h=v(f)||p.b.value.includes(n);f&&!o.B.value.includes(n)&&(e.purposeIds.add(f.id),e.purposes.add(f),h&&(e.spiPurposes.add(f),e.spiPurposeIds.add(f.id)),"1st_party"===t.type&&e.purposeIdsFirstParty.add(f.id),u.T.value.includes(f.id)||e.purposeIdsBasedOnLI.has(f.id)||(e.purposeIdsBasedOnLI.add(f.id),e.purposesBasedOnLI.add((0,r.A)({},f,{legalBasis:"legitimate_interest"})),h&&e.spiPurposeIdsBasedOnLI.add(f.id)))}if(Array.isArray(t.purposeIds))for(var g of t.purposeIds){var m,b=null==(m=a.m.value)?void 0:m[g],y=v(b)||p.b.value.includes(g);b&&!o.B.value.includes(b.id)&&(e.purposeIds.add(b.id),e.purposes.add(b),y&&(e.spiPurposes.add(b),e.spiPurposeIds.add(b.id)),"1st_party"===t.type&&e.purposeIdsFirstParty.add(b.id),u.T.value.includes(b.id)||e.purposeIdsBasedOnConsent.has(b.id)||(e.purposeIdsBasedOnConsent.add(b.id),e.purposesBasedOnConsent.add((0,r.A)({},b,{legalBasis:"consent"})),y&&e.spiPurposeIdsBasedOnConsent.add(b.id)))}}for(var _ of i.x.value)if(!e.purposeIds.has(_.id)){e.purposeIds.add(_.id),e.purposes.add(_);var I,S,w,A,C=v(_)||p.b.value.includes(_.id);if(!e.purposeIdsBasedOnConsent.has(_.id)&&!e.purposeIdsBasedOnLI.has(_.id)&&!u.T.value.includes(_.id))e.purposeIdsFirstParty.add(_.id),null==(I=d.r.value)||null==(S=I.group)||!S.name||"optin"===(null==(w=d.r.value)||null==(A=w.group)?void 0:A.name)||C?(e.purposeIdsBasedOnConsent.add(_.id),e.purposesBasedOnConsent.add((0,r.A)({},_,{legalBasis:"consent"})),C&&(e.spiPurposes.add(_),e.spiPurposeIds.add(_.id),e.spiPurposeIdsBasedOnConsent.add(_.id))):(e.purposeIdsBasedOnLI.add(_.id),e.purposesBasedOnLI.add((0,r.A)({},_,{legalBasis:"legitimate_interest"})))}for(var P of l.value)e.purposeIds.add(P.id),e.purposes.add(P);return{purposes:[...e.purposes],purposeIds:[...e.purposeIds],purposesBasedOnConsent:[...e.purposesBasedOnConsent],purposeIdsBasedOnConsent:[...e.purposeIdsBasedOnConsent],purposesBasedOnLI:[...e.purposesBasedOnLI],purposeIdsBasedOnLI:[...e.purposeIdsBasedOnLI],purposeIdsFirstParty:[...e.purposeIdsFirstParty],spiPurposes:[...e.spiPurposes],spiPurposeIds:[...e.spiPurposeIds],spiPurposeIdsBasedOnConsent:[...e.spiPurposeIdsBasedOnConsent],spiPurposeIdsBasedOnLI:[...e.spiPurposeIdsBasedOnLI]}})},15427:function(e,t,n){"use strict";n.r(t),n.d(t,{getApplicableProviders:function(){return o}});var r=n(25159),s=new Set(["adobe","gtm","tealium","commandersact","eulerian","eulerian-v2"]),o=e=>{var t,n=new Set(["didomi"]);return null!=e&&e.provider?(null==(t=e.provider.split("|"))||t.forEach(e=>{"didomi"!==e&&(s.has(e)?n.add(e):console.error(r.a.didomiPrefix+'The tag manager "'+e+'" is not supported. Possible values: '+[...s].join(", ")))}),n):n}},15560:function(e,t,n){"use strict";n.d(t,{q:function(){return o}});var r=n(34576),s=n(25159),o=(0,r.vP)({majorVersion:s.a.defaultTCFVersion,minorVersion:s.a.defaultTCFMinorVersion,semVersion:parseFloat(s.a.defaultTCFVersion+"."+s.a.defaultTCFMinorVersion)})},16382:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var r=()=>{var e,t,n=null==(e=window.didomiRemoteConfig)||null==(t=e.notices)?void 0:t[0];return n&&"object"==typeof n?n:null}},16691:function(e,t,n){"use strict";function r(){var e=Math.round((new Date).getTime()).toString(16);return(e.substring(0,8)+"-"+e.substring(8)+"x-6xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g,e=>{var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}n.d(t,{A:function(){return r}})},17732:function(e,t,n){"use strict";n.d(t,{J:function(){return v}});var r=n(34576),s=n(14004),o=n(9757),i=n(68200),a=n(66559),u=(0,r.EW)(()=>{var e,t=null==(e=a.o.value)?void 0:e.google;if(!t)return!1;var n=!0;for(var r of t.purposeIds){var s,u,l;n=n&&(null==(s=i.II.value)||null==(u=s.purposes)||null==(l=u.enabled)?void 0:l.includes(r))}for(var d of t.legIntPurposeIds){var c,p,v;n=n&&(null==(c=i.II.value)||null==(p=c.purposes_li)||null==(v=p.enabled)?void 0:v.includes(d))}if(t.specialFeatureIds)for(var f of t.specialFeatureIds){(0,o.PL)(f)&&(n=n&&i.II.value.purposes.enabled.includes(f))}return n}),l=n(91888),d=(0,r.EW)(()=>{var e,t,n,r=[],s=[],o=null==(e=l.E.value)?void 0:e.map(e=>{var{id:t}=e;return t}),{vendors:a,vendors_li:u}=i.II.value,d=e=>o.includes(e),c=null==a||null==(t=a.enabled)?void 0:t.filter(d),p=null==u||null==(n=u.enabled)?void 0:n.filter(d);for(var v of l.E.value){var f,h,g,m,b,y,_,I,S,w,A=(null==v||null==(f=v.purposeIds)?void 0:f.length)>0,C=(null==v||null==(h=v.legIntPurposeIds)?void 0:h.length)>0;if(A||C)if(!A||null!=c&&c.includes(v.id))if(!C||null!=p&&p.includes(v.id))r.push(null==v||null==(g=v.namespaces)||null==(m=g.google)?void 0:m.id);else s.push(null==v||null==(b=v.namespaces)||null==(y=b.google)?void 0:y.id);else s.push(null==v||null==(_=v.namespaces)||null==(I=_.google)?void 0:I.id);else s.push(null==v||null==(S=v.namespaces)||null==(w=S.google)?void 0:w.id)}return{enabledATPVendorIds:r.filter((e,t)=>r.indexOf(e)==t),disclosedATPVendorIds:s.filter((e,t)=>s.indexOf(e)==t)}}),c=n(20152),p=n(26781),v=(0,r.EW)(()=>{var e,t;if(s.y.value){var n,r,o,i,a,l,v,f,{enabledATPVendorIds:h,disclosedATPVendorIds:g}=d.value;return!1===(null==(e=c.U.value.vendors)||null==(t=e.google)?void 0:t.fullATP)?u.value?(null==(n=c.U.value)||null==(r=n.vendors)||null==(o=r.google)||null==(i=o.additionalConsent)?void 0:i.positive)||p.Lq:(null==(a=c.U.value)||null==(l=a.vendors)||null==(v=l.google)||null==(f=v.additionalConsent)?void 0:f.negative)||"":u.value?"2~"+h.join(".")+"~dv."+g.join("."):"2~~dv."+[...h,...g].join(".")}})},19621:function(e,t,n){"use strict";n.r(t),n.d(t,{Wrapper:function(){return o}});var r=n(50378),s=n(55217);class o{constructor(e,t){this.windowVarCall=e,this.windowVarReadys=t||[e],this.createCondition(this.windowVarReadys,window)?this.loaded=!0:(this.loaded=!1,this.loading=new Promise(e=>{(0,s.Tv)(t=>{this.createCondition(this.windowVarReadys,window)&&(this.loaded=!0,e(),t())},100,3e4)}))}createCondition(e,t){return e.reduce((e,n)=>{var s=Array.isArray(n)?n.reduce((e,n)=>e||Boolean((0,r.Jt)(t,n)),!1):(0,r.Jt)(t,n);return e&&Boolean(s)},!0)}call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{this.doCall(this.windowVarCall,e,...n)});this.doCall(this.windowVarCall,e,...n)}doCall(e,t){var n=(0,r.Jt)(window,e,{}),s=n[t];if(s&&"function"==typeof s){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a{var e,t,n,s=(0,o.or)((null==(e=r.bK.value)?void 0:e.website)||{},(null==(t=r.bK.value)?void 0:t.app)||{});return"boolean"!=typeof s.enabledTCFAPIErrorLogging&&(s.enabledTCFAPIErrorLogging=i.ENABLED_TCF_API_ERROR_LOGGING),!window.gdprAppliesGlobally||null!=(n=r.bK.value)&&n.version||(s.ignoreCountry=!0),(!(0,o.Et)(s.consentDuration)||s.consentDuration<=0)&&(s.consentDuration=i.CONSENT_DURATION),(!(0,o.Et)(s.deniedConsentDuration)||s.deniedConsentDuration<=0)&&(s.deniedConsentDuration=i.DENIED_CONSENT_DURATION),"string"!=typeof s.providerKey&&delete s.providerKey,"boolean"!=typeof s.enableGlobalConsentForAllVendorsAndPurposes&&(s.enableGlobalConsentForAllVendorsAndPurposes=i.ENABLE_GLOBAL_CONSENT_FOR_ALL_VENDORS_AND_PURPOSES),"boolean"!=typeof s.alwaysDisplayActionButtons&&(s.alwaysDisplayActionButtons=i.ALWAY_DISPLAY_ACTION_BUTTON),s})},20259:function(e,t,n){"use strict";n.d(t,{MU:function(){return u},On:function(){return l},bK:function(){return i},ld:function(){return d},xF:function(){return a}});var r=n(58168),s=n(34576),o=n(50378),i=(0,s.vP)(null),a=e=>{var t=Object.assign({},i.value||{});i.value=(0,r.A)({},t,e||{})},u=e=>{var t=Object.assign({},i.value||{});i.value=(0,o.zw)(t,e||{})},l=function(e,t){return void 0===t&&(t=void 0),(0,o.Jt)(i.value,e)||t},d=(e,t)=>{var n=i.value;(0,o.hZ)(n,e,t),i.value=n}},21691:function(e,t,n){"use strict";n.d(t,{_:function(){return h}});var r=n(26149),s=n(56738),o=n(50378),i=n(66559),a=n(77396),u=e=>{var t,{vendorId:n,enabledVendorIds:u,disabledVendorIds:l=[],defaultEnabledVendorIds:d=[],enabledPurposeIds:c,type:p}=e;if(!r.H$.value.firstPartyOperatorIds.includes(String(n)))if(u.includes(n)||l.includes(n)){if(!u.includes(n))return!1}else if(!d.includes(n))return!1;var v=null==(t=i.o.value)?void 0:t[n];if(v){var f="li"===p?v.legIntPurposeIds:v.purposeIds;return(0,s.Z)((0,o.gi)(f),[...c,...a.T.value])}return!0},l=n(2073),d=n(34576),c=n(67447),p=n(58975),v=n(52772),f=n(74498),h=(0,d.EW)(()=>{var e,t,n=[],s=l.R.value,o=r.H$.value.operatorsByProcessingRule.operatorIds.optout,i=r.H$.value.operatorsByProcessingRule.operatorIds.optin,a=r.H$.value.operatorsByProcessingRule.operatorIds.essential,d=p.B.value.optin.collect.operators.thirdPartyOperators.enable,h=p.B.value.optout.collect.operators.thirdPartyOperators.enable,g=null==(e=p.B.value.optout.collect.operators.thirdPartyOperators.as)?void 0:e.includes("optin"),m=null==(t=p.B.value.optin.collect.operators.thirdPartyOperators.as)?void 0:t.includes("optout"),b=d?c.a.value.byLegalBasis.consent.vendors.enabled:h&&g?c.a.value.byLegalBasis.li.vendors.enabled:l.R.value,y=d?c.a.value.byLegalBasis.consent.vendors.disabled:h&&g?c.a.value.byLegalBasis.li.vendors.disabled:[],_=h?c.a.value.byLegalBasis.li.vendors.enabled:d&&m?c.a.value.byLegalBasis.consent.vendors.enabled:l.R.value,I=h?c.a.value.byLegalBasis.li.vendors.disabled:d&&m?c.a.value.byLegalBasis.consent.vendors.disabled:[],{resolvedEnabledConsentPurposeIds:S,resolvedEnabledLIPurposeIds:w}=v.X.value,A=(0,f.w)(),C=A.vendors.enabled,P=A.vendors_li.enabled;for(var k of s){var E=!0;o.includes(k)&&(E=u({vendorId:k,enabledVendorIds:_,disabledVendorIds:I,defaultEnabledVendorIds:P,enabledPurposeIds:w,type:"li"})),i.includes(k)&&(E=E&&u({vendorId:k,enabledVendorIds:b,disabledVendorIds:y,defaultEnabledVendorIds:C,enabledPurposeIds:S,type:"consent"})),a.includes(k)&&E?n.push(k):E&&n.push(k)}var O=s.filter(e=>!n.includes(e));return{currentUserStatusEnabledVendorIds:n,currentUserStatusDisabledVendorIds:O}})},22639:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});var r=n(58168),s=n(34576),o=n(50378),i=n(20259),a={enable:!0,defaultChoice:void 0,enableAllButtons:!1,showWhenConsentIsMissing:!1,canCloseWhenConsentIsMissing:!0,view:"preferences",preferencesView:"purposes",information:{enable:!1,content:{text:{}}},categories:[],denyAppliesToLI:!0,controlType:void 0,combineLIAndConsent:!1,content:{instructions:void 0,activeElements:["title","crossButton","viewAllPartners","save"]},vendorsListModal:{isOpen:!1,title:null,vendors:[]}},u=n(25159),l=e=>{if(!e.purposeId&&!e.id)return console.error(u.a.didomiPrefix+"The category/purpose ID is undefined. Ignoring it."),null;var t=Array.isArray(e.children);if(t&&!/^[A-Za-z0-9-_]+$/.test(e.id))return console.error(u.a.didomiPrefix+'The category ID "'+e.id+'" is not valid. Ignoring it.'),null;if(t){e.type="category";var n=[];for(var r of e.children){var s=l(r);s&&n.push(s)}e.children=n}return e},d=(0,s.EW)(()=>{var e,t,n=(0,o.or)(a,(null==(e=i.bK.value)?void 0:e.preferences)||{});n.showWhenConsentIsMissing=!(null==n||!n.showWhenConsentIsMissing),!0===(null==n?void 0:n.information.enable)&&(n.view="information"),n.information=(0,r.A)({},n.information,{enable:!(null==n||null==(t=n.information)||!t.enable)});var s=[];if(null!=n&&n.categories)for(var u of n.categories){var d=l(u);d&&s.push(d)}return n.categories=s,n})},23187:function(e,t,n){"use strict";n.d(t,{Hm:function(){return v},K9:function(){return p},RE:function(){return c},RT:function(){return f},h2:function(){return h},qQ:function(){return l}});var r=n(50378),s=n(52477),o=n(62026),i=n(90013),a=n(25159);function u(e,t){return"object"==typeof e&&(e[t]||(e[t]={}),e[t].disabled||(e[t].disabled=[]),e[t].enabled||(e[t].enabled=[])),e}function l(e,t){try{var n;return u(n=t&&"function"==typeof t&&!i.I.value?t(e):JSON.parse(o.o4.atob(e)),"purposes"),u(n,"purposes_li"),u(n,"vendors"),u(n,"vendors_li"),n}catch(e){return null}}function d(e,t){if(e[t]){var n=Array.isArray(e[t].enabled)&&e[t].enabled.length,r=Array.isArray(e[t].disabled)&&e[t].disabled.length;n||r?n?r||delete e[t].disabled:delete e[t].enabled:delete e[t]}return e}function c(e,t,n){if(void 0===t&&(t=[]),!e||"object"!=typeof e)return null;var s=(0,r.Go)(e),i=(0,r.Jt)(s,"vendors.enabled"),a=(0,r.Jt)(s,"vendors.disabled"),u=(0,r.Jt)(s,"vendors_li.enabled"),l=(0,r.Jt)(s,"vendors_li.disabled"),c=e=>e&&"number"!=typeof e;if(Array.isArray(i)&&(s.vendors.enabled=i.filter(c)),Array.isArray(u)&&(s.vendors_li.enabled=u.filter(c)),Array.isArray(a)&&(s.vendors.disabled=a.filter(c)),Array.isArray(l)&&(s.vendors_li.disabled=l.filter(c)),t.length){var p=(0,r.Jt)(e,"purposes.enabled"),v=(0,r.Jt)(e,"purposes.disabled"),f=(0,r.Jt)(e,"purposes_li.enabled"),h=(0,r.Jt)(e,"purposes_li.disabled"),g=e=>-1===t.indexOf(e);Array.isArray(p)&&p.length&&(s.purposes.enabled=s.purposes.enabled.filter(g)),Array.isArray(v)&&v.length&&(s.purposes.disabled=s.purposes.disabled.filter(g)),Array.isArray(f)&&f.length&&(s.purposes_li.enabled=s.purposes_li.enabled.filter(g)),Array.isArray(h)&&h.length&&(s.purposes_li.disabled=s.purposes_li.disabled.filter(g))}return d(s,"purposes"),d(s,"purposes_li"),d(s,"vendors"),d(s,"vendors_li"),n&&"function"==typeof n?n(s):o.o4.btoa(JSON.stringify(s))}function p(e){try{var t=e.split(".")[1];return JSON.parse(o.o4.decode(t))}catch(e){return console.error(a.a.didomiPrefix+"Unable to parse JWT token",e),null}}function v(e,t){if(!e||!e.updated)return!1;var n=(0,s.u)(e.updated);return!!n&&((new Date).getTime()-n.getTime())/1e3>=t}function f(e){var t=[...(0,r.Jt)(e,"vendors.enabled",[]),...(0,r.Jt)(e,"purposes.enabled",[])],n=[...(0,r.Jt)(e,"vendors.disabled",[]),...(0,r.Jt)(e,"purposes.disabled",[])];return 0===t.length&&n.length>0}function h(e){var{token:t,regulationId:n,apply:r}=e;return t&&"object"==typeof t&&void 0!==n&&!0===r&&(t.regulation_id=n),t}},23369:function(e,t,n){"use strict";n.d(t,{B1:function(){return u},Yj:function(){return i},lR:function(){return a}});var r=n(25159),s=["consent.pendingchanged","remoteconsent.","consent.","cookies.","integrations.","notice.","preferences.","ui.","components.","sync.","signature.","api.","widget."],o=["consent.","remoteconsent.","cookies.","integrations.","notice.","preferences.","ui.","components.","sync.","signature.","api.","internal.","ced.","widget."],i=e=>s.some(t=>e.startsWith(t)),a=e=>!o.some(t=>e.startsWith(t)),u=(e,t)=>function(){try{e(...arguments)}catch(e){console.error(r.a.didomiPrefix+"Error in event listener callback for "+t+".",e)}}},23410:function(e,t,n){var r={"./adobe/adobe.js":34751,"./commandersact/commandersact.js":84207,"./didomi/didomi.js":517,"./eulerian-v2/eulerian-v2.js":26139,"./eulerian/eulerian.js":54971,"./get-applicable-providers.js":15427,"./gtm/gtm.js":10747,"./load-provider-module.js":87931,"./tealium/tealium.js":72527,"./utils/wrapper.js":19621};function s(e){return o(e).then(n)}function o(e){return Promise.resolve().then(function(){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]})}s.keys=function(){return Object.keys(r)},s.resolve=o,s.id=23410,e.exports=s},23984:function(e,t,n){"use strict";n.d(t,{l:function(){return s}});var r=n(58168),s=(e,t)=>void 0===e&&void 0===t?void 0:void 0===e?t:void 0===t?e:(0,r.A)({},t,e)},24163:function(e,t,n){"use strict";n.d(t,{g:function(){return o},h:function(){return i}});var r=n(10467),s=n(68307),o=void 0,i=function(){var e=(0,r.A)(function*(){return n.e("consent-string").then(n.bind(n,4962)).then(e=>{o={encode:e.encodeDCS,decode:e.decodeDCS},(0,s.Ic)("ced.loaded")})});return function(){return e.apply(this,arguments)}}()},24310:function(e,t,n){"use strict";n.d(t,{F:function(){return s}});var r=n(58266),s={[r.T.GeolocationData]:1,[r.T.DeviceCharacteristics]:2}},24408:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(34576),s=n(20152),o=(0,r.EW)(()=>{var e,t=null==(e=s.U.value)?void 0:e.apiKey;if(t)return t;var n=document.getElementById("spcloader");if(n&&n.getAttribute){var r=n.getAttribute("data-key");if("string"==typeof r&&r.length>0)return r}})},24746:function(e,t,n){"use strict";n.d(t,{Dx:function(){return o},jh:function(){return i},q7:function(){return u},y3:function(){return a}});var r=n(50378),s=(e,t)=>(null==t?void 0:t[e])||e,o=function(e,t){if(void 0===t&&(t={}),!e)return{};var n={},{enabled:r,disabled:o}=e;for(var i of r||[]){var a=s(i,t);n[a]={id:a,enabled:!0}}for(var u of o||[]){var l=s(u,t);n[l]={id:l,enabled:!1}}return n},i=e=>{var{globalUserStatus:t,includeIds:n=[],reversedIdsToDidomiIdsMap:r,parseNumIds:s=!0}=e,o={enabled:[],disabled:[]};for(var i of Object.keys(t)){var a=(null==r?void 0:r[i])||i;s&&(a=parseInt(a,10)||a),n.length&&!n.includes(a)||(t[i].enabled?o.enabled.push(a):o.disabled.push(a))}return o},a=(e,t)=>{var{vendors:n,purposes:s}=e,{vendors:o,purposes:i}=t,{vendors_li:a,purposes_li:u}=e,{vendors_li:l,purposes_li:d}=t;return!((0,r.r1)(n.enabled,o.enabled)&&(0,r.r1)(n.disabled,o.disabled)&&(0,r.r1)(s.enabled,i.enabled)&&(0,r.r1)(s.disabled,i.disabled)&&(0,r.r1)(a.enabled,l.enabled)&&(0,r.r1)(a.disabled,l.disabled)&&(0,r.r1)(u.enabled,d.enabled)&&(0,r.r1)(u.disabled,d.disabled))},u=function(e,t,n){void 0===t&&(t=[]);var r=t.map(e=>parseInt(e,10)||e);for(var s of Object.keys(e)){var o=(null==n?void 0:n[s])||s;if(o=parseInt(o,10)||o,r.length&&!r.includes(o))return!1}return!0}},25159:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});var r={defaultTCFVersion:2,defaultTCFMinorVersion:2,IABPolicyUrl:"https://iabeurope.eu/iab-europe-transparency-consent-framework-policies/",tcfVersion2_2:2.2,defaultCMPID:7,defaultCMPVersion:1,didomiConsentStringSchemaMinorVersion:1,didomiConsentStringSchemaMajorVersion:2,didomiPrefix:"Didomi - "}},26104:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=n(20259),s=(0,n(34576).EW)(()=>{var e,t,n=null==(e=r.bK.value)||null==(t=e.cookies)?void 0:t.iabCookieName;return"string"==typeof n&&n.length>0?n:"euconsent-v2"})},26139:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(55217);class s{constructor(){this.isContainerLoaded=!1,this.containerLoading=new Promise(e=>{(0,r.Tv)(t=>{window._oEa&&window.EA_collector&&(this.isContainerLoaded=!0,e(),t())},100,3e4)})}send(e){var t=null==e?void 0:e.didomiVendorsConsent.split(",").filter(e=>-1===e.indexOf("iab:")).join(",");window.EA_collector(["cmp-customvendor-allowed",t])}update(e){var{customVariables:t}=e;this.isContainerLoaded?this.send(t):this.containerLoading.then(()=>{this.send(t)})}}},26149:function(e,t,n){"use strict";n.d(t,{H$:function(){return r.H}});var r=n(76406)},26781:function(e,t,n){"use strict";n.d(t,{At:function(){return l},Lq:function(){return a},w6:function(){return u}});var r=n(58168),s=n(50378),o=n(94382),i=n(43682),a="1~7.12.35.62.66.70.89.93.108.122.144.149.153.162.167.184.196.221.241.253.259.272.311.317.323.326.338.348.350.415.440.448.449.482.486.491.494.495.540.571.574.585.587.588.590.725.733.780.817.839.864.867.932.938.981.986.1031.1033.1051.1092.1097.1126.1127.1170.1171.1186.1201.1204.1205.1211.1215.1230.1232.1236.1248.1276.1290.1301.1313.1344.1364.1365.1415.1419.1428.1449.1451.1509.1558.1564.1570.1577.1591.1651.1669.1712.1716.1720.1721.1725.1733.1753.1765.1799.1810.1834.1842.1870.1878.1889.1896.1911.1922.1929.2012.2072.2078.2079.2109.2177.2202.2253.2290.2299.2316.2357.2373.2526.2531.2571.2572.2575.2628.2663.2677.2776.2778.2779.2985.3033.3052.3154",u=(e,t)=>{if(0===t.length)return null;var n=t.map(e=>{var{id:t}=e;return t}),r=d(t),s=e.vendors.enabled.filter(e=>-1!==n.indexOf(e)).map(e=>r[e]),i=e.vendors_li.enabled.filter(e=>-1!==n.indexOf(e)).map(e=>r[e]);return(0,o.h)(s)+"."+(0,o.h)(i)},l=(e,t)=>{var[n,r]=e.split("."),s=c(t),o=(0,i.v)(n).map(e=>s[e]),a=(0,i.v)(r).map(e=>s[e]),u=t.map(e=>{var{id:t}=e;return t});return{vendors:{enabled:o.filter(e=>e),disabled:u.filter(e=>-1===o.indexOf(e))},vendors_li:{enabled:a.filter(e=>e),disabled:u.filter(e=>-1===a.indexOf(e))}}},d=e=>e.reduce((e,t)=>(0,r.A)({},e,{[t.id]:(0,s.Jt)(t,"namespaces.google.id")}),{}),c=e=>e.reduce((e,t)=>(0,r.A)({},e,{[(0,s.Jt)(t,"namespaces.google.id")]:t.id}),{})},27565:function(e,t){"use strict";var n={instance:null},r=[];function s(e,t){var n=JSON.parse(t.state),s=Object.keys(n.actionsById).filter(function(e){return parseInt(e,10)<=t.payload.id}),o=0;setTimeout(function t(){!function(t){if("initialState"===t.type)e.setState(n.computedStates[0].state);else{var s=r.find(function(e){return t.type===e.key});s&&s.fn()}}(n.actionsById[s[o]].action),++o>=s.length||setTimeout(t,10)},0)}function o(e){"DISPATCH"===e.type&&("JUMP_TO_ACTION"===e.payload.type||"JUMP_TO_STATE"===e.payload.type?this.setState(JSON.parse(e.state)):"TOGGLE_ACTION"===e.payload.type&&s(this,e))}function i(e,t){if(!t.initialized){var r=o.bind(e);n.instance&&n.instance.subscribe(r),t.initialized=!0}}var a=function(e){return function(t,s){return function(o){var u=t(o);i(e,a),function(e,t){var n=r.find(function(t){return e.name===t.key});n||(n={key:e.name,fn:t},r.push(n))}(o,function(){return t(o)});var l={type:o.name,args:s};return u&&u.then?u.then(function(){return n.instance&&n.instance.send(l,e.getState())}):(n.instance&&n.instance.send(l,e.getState()),u)}}};"object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__},28221:function(e,t,n){"use strict";var r;n.d(t,{$:function(){return s},B:function(){return r}});var s=e=>{r=e}},29047:function(e,t,n){"use strict";var r;n.d(t,{T:function(){return r}}),function(e){e.Cookies="cookies",e.CookiesAnalytics="cookies_analytics",e.CookiesMarketing="cookies_marketing",e.CookiesSocial="cookies_social",e.SelectBasicAds="select_basic_ads",e.CreateAdsProfile="create_ads_profile",e.SelectPersonalizedAds="select_personalized_ads",e.CreateContentProfile="create_content_profile",e.SelectPersonalizedContent="select_personalized_content",e.MeasureAdPerformance="measure_ad_performance",e.MeasureContentPerformance="measure_content_performance",e.MarketResearch="market_research",e.ImproveProducts="improve_products",e.UseLimitedDataToSelectContent="use_limited_data_to_select_content"}(r||(r={}))},29690:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(34576),s=n(20259),o=n(73412),i=(0,r.EW)(()=>{var e,t,n;if(null==(e=s.bK.value)||!e.version||null==(t=s.bK.value)||!t.preferences)return[];var{sensitivePersonalInformation:r}=s.bK.value.preferences;return(null==r||null==(n=r.categories)?void 0:n.flatMap(e=>e.children.filter(e=>{var t;return"purpose"===e.type&&void 0!==(null==(t=o.m.value)?void 0:t[e.purposeId])}).map(e=>o.m.value[e.purposeId])))||[]})},33058:function(e,t,n){"use strict";n.d(t,{HO:function(){return p},R0:function(){return v},vP:function(){return a.vP}});var r,s,o=n(50172),i=n(45994),a=n(34576);function u(e,t){o.options[e]=t.bind(null,o.options[e]||function(){})}function l(e){s&&s(),s=e&&e.S()}function d(e){var t=this,n=e.data,r=function(e){return(0,i.Kr)(function(){return(0,a.vP)(e)},[])}(n);r.value=n;var s=(0,i.Kr)(function(){for(var e=t.__v;e=e.__;)if(e.__c){e.__c.__$f|=4;break}return t.__$u.c=function(){var e;(0,o.isValidElement)(s.peek())||3!==(null==(e=t.base)?void 0:e.nodeType)?(t.__$f|=1,t.setState({})):t.base.data=s.peek()},(0,a.EW)(function(){var e=r.value.value;return 0===e?0:!0===e?"":e||""})},[]);return s.value}function c(e,t,n,r){var s=t in e&&void 0===e.ownerSVGElement,o=(0,a.vP)(n);return{o:function(e,t){o.value=e,r=t},d:(0,a.QZ)(function(){var n=o.value.value;r[t]!==n&&(r[t]=n,s?e[t]=n:n?e.setAttribute(t,n):e.removeAttribute(t))})}}function p(e){var t=(0,i.li)(e);return t.current=e,r.__$f|=4,(0,i.Kr)(function(){return(0,a.EW)(function(){return t.current()})},[])}function v(e){var t=(0,i.li)(e);t.current=e,(0,i.vJ)(function(){return(0,a.QZ)(function(){return t.current()})},[])}d.displayName="_st",Object.defineProperties(a.HN.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:d},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),u("__b",function(e,t){if("string"==typeof t.type){var n,r=t.props;for(var s in r)if("children"!==s){var o=r[s];o instanceof a.HN&&(n||(t.__np=n={}),n[s]=o,r[s]=o.peek())}}e(t)}),u("__r",function(e,t){l();var n,s=t.__c;s&&(s.__$f&=-2,void 0===(n=s.__$u)&&(s.__$u=n=function(){var e;return(0,a.QZ)(function(){e=this}),e.c=function(){s.__$f|=1,s.setState({})},e}())),r=s,l(n),e(t)}),u("__e",function(e,t,n,s){l(),r=void 0,e(t,n,s)}),u("diffed",function(e,t){var n;if(l(),r=void 0,"string"==typeof t.type&&(n=t.__e)){var s=t.__np,o=t.props;if(s){var i=n.U;if(i)for(var a in i){var u=i[a];void 0===u||a in s||(u.d(),i[a]=void 0)}else n.U=i={};for(var d in s){var p=i[d],v=s[d];void 0===p?(p=c(n,d,v,o),i[d]=p):p.o(v,o)}}}e(t)}),u("unmount",function(e,t){if("string"==typeof t.type){var n=t.__e;if(n){var r=n.U;if(r)for(var s in n.U=void 0,r){var o=r[s];o&&o.d()}}}else{var i=t.__c;if(i){var a=i.__$u;a&&(i.__$u=void 0,a.d())}}e(t)}),u("__h",function(e,t,n,r){(r<3||9===r)&&(t.__$f|=2),e(t,n,r)}),o.Component.prototype.shouldComponentUpdate=function(e,t){var n=this.__$u;if(!(n&&void 0!==n.s||4&this.__$f))return!0;if(3&this.__$f)return!0;for(var r in t)return!0;for(var s in e)if("__source"!==s&&e[s]!==this.props[s])return!0;for(var o in this.props)if(!(o in e))return!0;return!1}},34189:function(e,t,n){"use strict";n.d(t,{L:function(){return E}});var r=n(34576),s=n(2073),o=n(15067),i=n(11843),a=n(58168),u=n(68200),l=n(72714),d=n(24746),c=n(50010),p=n(80305),v=n(17732),f=(e,t,n)=>{var r,s,o,i=(0,a.A)({user_id:null==(r=u.II.value)?void 0:r.user_id,created:null==(s=u.II.value)?void 0:s.created,updated:null==(o=u.II.value)?void 0:o.updated},l.z.value&&{gpp_string:l.z.value},{vendors:(0,d.Dx)(t,c.C.value),purposes:(0,d.Dx)(n),regulation:e}),f={none:{consent_string:p.M.value,addtl_consent:v.J.value},gdpr:{consent_string:p.M.value,addtl_consent:v.J.value},mixed:{}};return(0,a.A)({},i,f[e])},h=n(67447),g=n(74498),m=n(77396),b=n(58975),y=n(96831),_=n(58623),I=n(75240),S=n(80759),w=n(58134),A=()=>{var e,t={},n=(0,S.$)(null==(e=I.q.value)?void 0:e.purposes,o.t.value.purposeIds,m.T.value);for(var r of o.t.value.purposeIds)if(m.T.value.includes(r))(0,y.w)(t,r,b.B.value.essential.default);else if(o.t.value.purposeIdsBasedOnConsent.includes(r)){var s=(0,w.U)(r,_.x.value.isEnabled,n,b.iS.optin,b.B.value.optin.default);(0,y.w)(t,r,s)}else{var i=(0,w.U)(r,_.x.value.isEnabled,n,b.iS.optout,b.B.value.optout.default);(0,y.w)(t,r,i)}return t},C=n(52772),P=n(21691),k=n(91963),E=(0,r.EW)(()=>{var e,t=null==(e=i.r.value)?void 0:e.name;return"none"===t?f("none",{enabled:s.R.value||[],disabled:[]},{enabled:o.t.value.purposeIds,disabled:[]}):k.p.value?f(t,{enabled:s.R.value||[],disabled:[]},{enabled:o.t.value.purposeIds,disabled:[]}):h.a.value.hasMadeAnyChoice?f(t,{enabled:P._.value.currentUserStatusEnabledVendorIds,disabled:P._.value.currentUserStatusDisabledVendorIds},{enabled:C.X.value.currentUserStatusEnabledPurposeIds,disabled:C.X.value.currentUserStatusDisabledPurposeIds}):(e=>{var t,n,r;return(0,a.A)({vendors:(0,g.w)().globalUserStatus,purposes:A(),regulation:e,user_id:null==(t=u.II.value)?void 0:t.user_id,created:null==(n=u.II.value)?void 0:n.created,updated:null==(r=u.II.value)?void 0:r.updated},"gdpr"===e?{consent_string:p.M.value,addtl_consent:v.J.value}:{},l.z.value?{gpp_string:l.z.value}:{})})(t)})},34576:function(e,t,n){"use strict";n.d(t,{EW:function(){return I},HN:function(){return h},QZ:function(){return P},vP:function(){return g}});var r=Symbol.for("preact-signals");function s(){if(l>1)l--;else{var e,t=!1;for(!function(){var e=p;for(p=void 0;void 0!==e;){var t=e.S;if(t.v===e.v)for(var n=t.t;void 0!==n;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}}();void 0!==u;){var n=u;for(u=void 0,d++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&m(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(d=0,l--,t)throw e}}var o,i=void 0;function a(e){var t=i,n=o;i=void 0,o=void 0;try{return e()}finally{i=t,o=n}}var u=void 0,l=0,d=0,c=0,p=void 0,v=0;function f(e){if(void 0!==i){var t=e.n;if(void 0===t||t.t!==i)return t={i:0,S:e,p:i.s,n:void 0,t:i,e:void 0,x:void 0,r:t},void 0!==i.s&&(i.s.n=t),i.s=t,e.n=t,32&i.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=i.s,t.n=void 0,i.s.n=t,i.s=t),t}}function h(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function g(e,t){return new h(e,t)}function m(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function b(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function y(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function _(e,t){h.call(this,void 0,t),this.x=e,this.s=void 0,this.g=v-1,this.f=4}function I(e,t){return new _(e,t)}function S(e){var t=e.m;if(e.m=void 0,"function"==typeof t){l++;var n=i;i=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,w(e),t}finally{i=n,s()}}}function w(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,S(e)}function A(e){if(i!==this)throw new Error("Out-of-order effect");y(this),i=e,this.f&=-2,8&this.f&&w(this),s()}function C(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,o&&o.push(this)}function P(e,t){var n=new C(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}h.prototype.brand=r,h.prototype.h=function(){return!0},h.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:a(function(){var e;null==(e=t.W)||e.call(t)}))},h.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&a(function(){var e;null==(e=t.Z)||e.call(t)}))}},h.prototype.subscribe=function(e){var t=this;return P(function(){var n=t.value;a(function(){return e(n)})},{name:"sub"})},h.prototype.valueOf=function(){return this.value},h.prototype.toString=function(){return this.value+""},h.prototype.toJSON=function(){return this.value},h.prototype.peek=function(){var e=this;return a(function(){return e.value})},Object.defineProperty(h.prototype,"value",{get:function(){var e=f(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(d>100)throw new Error("Cycle detected");!function(e){0!==l&&0===d&&e.l!==c&&(e.l=c,p={S:e,v:e.v,i:e.i,o:p})}(this),this.v=e,this.i++,v++,l++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{s()}}}}),_.prototype=new h,_.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===v)return!0;if(this.g=v,this.f|=1,this.i>0&&!m(this))return this.f&=-2,!0;var e=i;try{b(this),i=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return i=e,y(this),this.f&=-2,!0},_.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}h.prototype.S.call(this,e)},_.prototype.U=function(e){if(void 0!==this.t&&(h.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},_.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(_.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=f(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),C.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},C.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,S(this),b(this),l++;var e=i;return i=this,A.bind(this,e)},C.prototype.N=function(){2&this.f||(this.f|=2,this.u=u,u=this)},C.prototype.d=function(){this.f|=8,1&this.f||w(this)},C.prototype.dispose=function(){this.d()}},34751:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(19621);class s{constructor(){this.satellite=new r.Wrapper("_satellite")}update(e){var{type:t="didomi-consent-changed",customVariables:n={}}=e;for(var r in n)this.satellite.call("setVar",r,n[r]);this.satellite.call("track",t)}}},34768:function(e,t,n){"use strict";n.d(t,{l:function(){return a}});var r=n(34576),s=n(50378),o=n(20259),i={enable:!0,daysBeforeShowingAgain:0,closeOnClick:!1,closeOnClickNavigationDelay:0,closeOnScroll:!1,closeOnScrollThresholdType:"percent",closeOnScrollThreshold:30,closeOnClickBackdrop:!1,type:"info",position:"panel-bottom-right",textAlignment:"left",logoAlignment:"center",learnMore:!0,learnMoreURL:null,learnMorePosition:null,showDataProcessing:!1,palette:{notice:{background:"#ffffff",text:null},button:{background:null,border:"rgba(34, 34, 34, 0.2)",text:null},hightlightButton:{background:null,border:"rgba(34, 34, 34, 0.2)",text:null}},canCloseAndIgnore:!1,denyAsPrimary:!0,denyAsLink:!1,denyAppliesToLI:!1,denyOptions:null,enableBulkActionOnPurposes:!1},a=(0,r.EW)(()=>{var e,t,n,r,a=(0,s.or)(i,(null==(e=o.bK.value)?void 0:e.notice)||{});return a.denyAsPrimary=a.denyOptions?"primary"===a.denyOptions.button:!0===a.denyAsPrimary,a.type=null==a||null==(t=a.denyOptions)||!t.button||"none"===(null==a||null==(n=a.denyOptions)?void 0:n.button)||null==a||null==(r=a.denyOptions)||!r.link||null!=a&&a.type?null==a?void 0:a.type:"optin",a.position=a.position||"top",a.daysBeforeShowingAgain=parseInt(""+((null==a?void 0:a.daysBeforeShowingAgain)||0),10),a})},34905:function(e,t,n){var r=["responseType","withCredentials","timeout","onprogress"];function s(e,t,n){e[t]=e[t]||n}t.ajax=function(e,t){var o=e.headers||{},i=e.body,a=e.method||(i?"POST":"GET"),u=!1,l=function(e){if(e&&n.g.XDomainRequest&&!/MSIE 1/.test(navigator.userAgent))return new XDomainRequest;if(n.g.XMLHttpRequest)return new XMLHttpRequest}(e.cors);function d(e,n){return function(){u||(t(void 0===l.status?e:l.status,0===l.status?"Error":l.response||l.responseText||n,l),u=!0)}}l.open(a,e.url,!0);var c=l.onload=d(200);l.onreadystatechange=function(){4===l.readyState&&c()},l.onerror=d(null,"Error"),l.ontimeout=d(null,"Timeout"),l.onabort=d(null,"Abort"),i&&(s(o,"X-Requested-With","XMLHttpRequest"),n.g.FormData&&i instanceof n.g.FormData||s(o,"Content-Type","application/x-www-form-urlencoded"));for(var p=0,v=r.length;p{var e,t,n;return null==(e=s.R.value)||!e.length||(0,i.Im)(o.o.value)?[]:null==(t=s.R.value)||null==(n=t.map(e=>{var t;return null==(t=o.o.value)?void 0:t[e]}))?void 0:n.filter(Boolean)})},35094:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var r=n(34576),s=n(20152),o=n(16382),i=(0,r.EW)(()=>{var e,t,n="ctv"===(null==(e=(0,o.V)())?void 0:e.platform),r=!(null==(t=s.U.value)||!t.ctvEnabled);return n||r})},35787:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(58168),s=n(34576),o=n(84426),i=n(9757),a=(0,s.EW)(()=>{var e,t,n;return null!=(e=o.S.value)&&null!=(t=e.purposes)&&t.length?null==(n=o.S.value)?void 0:n.purposes.map(e=>(0,r.A)({},e,{id:i.RQ[e.id],namespace:"iab"})):[]})},35968:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(73412),s=e=>{var t;return null==(t=r.m.value)?void 0:t[e]}},36217:function(e,t,n){"use strict";n.d(t,{D:function(){return a}});var r=n(20152),s=n(72198),o=n(34576),i=s.t.map(e=>e.id).concat("google"),a=(0,o.EW)(()=>{var e,t,n=null==r.U||null==(e=r.U.value)||null==(t=e.vendors)?void 0:t.didomi;return n&&Array.isArray(n)?n.filter(e=>i.includes(e)):[]})},38311:function(e,t,n){"use strict";function r(e){if(!e)return null;try{return window.localStorage.getItem(e)}catch(e){return null}}function s(e,t){try{window.localStorage.setItem(e,t)}catch(e){return}}function o(e){try{window.localStorage.removeItem(e)}catch(e){return}}n.d(t,{AP:function(){return s},_S:function(){return r},bJ:function(){return o}})},38572:function(e,t,n){"use strict";n.d(t,{k:function(){return s}});var r=n(83587),s=()=>r.o.value?["legitimate_interest"]:["consent","legitimate_interest"]},39015:function(e,t,n){var r=function(){function e(e,t){for(var n=0;n{var e,t;return null!=(e=o.C.value)&&e.length?null==(t=o.C.value)?void 0:t.map(e=>{var t;return null==(t=s.o.value)?void 0:t[e]}).filter(Boolean):[]})},39838:function(e,t,n){"use strict";n.d(t,{i:function(){return s}});var r=["ar","dv","fa","ha","he","ks","ku","ps","sd","ug","ur","yi"],s=e=>{if(!e||"string"!=typeof e)return"ltr";var t=e.slice(0,2);return r.includes(t)?"rtl":"ltr"}},40950:function(e,t,n){"use strict";n.d(t,{A:function(){return r},L:function(){return s}});var r=(0,n(34576).vP)({visible:!0}),s=e=>{r.value=e}},41354:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});class r{constructor(e,t,n){this.userStatus=this.getConsentsAndLegitimateInterests(e()),this.setUserStatus=t,this.action=n}getConsentsAndLegitimateInterests(e){return{purposesConsents:e.purposes.consent,vendorsConsents:e.vendors.consent,vendorsLegitimateInterests:e.vendors.legitimate_interest,purposesLegitimateInterests:e.purposes.legitimate_interest}}enablePurpose(e){-1===this.userStatus.purposesConsents.enabled.indexOf(e)&&this.userStatus.purposesConsents.enabled.push(e);var t=this.userStatus.purposesConsents.disabled.indexOf(e);return-1!==t&&this.userStatus.purposesConsents.disabled.splice(t,1),this}enablePurposes(){for(var e=arguments.length,t=new Array(e),n=0;n{var e,t,n;return null!=(e=r.$.value)&&e.length?null==(t=r.$.value)||null==(n=t.filter(e=>{var t;return!(null!=e&&null!=(t=e.namespaces)&&t.didomi)}))?void 0:n.map(e=>e.id):[]})},41990:function(e,t,n){"use strict";n.d(t,{S4:function(){return s},r5:function(){return r}});var r=(0,n(34576).vP)({didomiToken:null,iabConsentString:null}),s=e=>{var{didomiToken:t,iabConsentString:n}=e;r.value={didomiToken:t,iabConsentString:n}}},43272:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(34576),s=n(77396),o=n(92920),i=(0,r.EW)(()=>{var e;return(null==(e=o.$.value)?void 0:e.reduce((e,t)=>{var{id:n,legIntPurposeIds:r,purposeIds:o}=t,i=[...o,...r];return i.length>0&&i.every(e=>s.T.value.includes(e))&&e.push(n),e},[]))||[]})},43682:function(e,t,n){"use strict";n.d(t,{v:function(){return s}});var r=n(76638),s=e=>{var t=[];return r.sH.decode(r.XK.decode(e)).forEach((e,n)=>e?t.push(n):null),t}},45994:function(e,t,n){"use strict";n.d(t,{J0:function(){return h},Kr:function(){return y},NT:function(){return _},Nf:function(){return m},li:function(){return b},vJ:function(){return g}});var r,s,o,i=n(50172),a=0,u=[],l=i.options.__b,d=i.options.__r,c=i.options.diffed,p=i.options.__c,v=i.options.unmount;function f(e,t){i.options.__h&&i.options.__h(s,e,a||t),a=0;var n=s.__H||(s.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function h(e){return a=1,function(e,t,n){var o=f(r++,2);return o.t=e,o.__c||(o.__=[n?n(t):P(void 0,t),function(e){var t=o.t(o.__[0],e);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}],o.__c=s),o.__}(P,e)}function g(e,t){var n=f(r++,3);!i.options.__s&&C(n.__H,t)&&(n.__=e,n.__H=t,s.__H.__h.push(n))}function m(e,t){var n=f(r++,4);!i.options.__s&&C(n.__H,t)&&(n.__=e,n.__H=t,s.__h.push(n))}function b(e){return a=5,y(function(){return{current:e}},[])}function y(e,t){var n=f(r++,7);return C(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function _(e){var t=s.context[e.__c],n=f(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(s)),t.props.value):e.__}function I(){for(var e;e=u.shift();)if(e.__P)try{e.__H.__h.forEach(w),e.__H.__h.forEach(A),e.__H.__h=[]}catch(t){e.__H.__h=[],i.options.__e(t,e.__v)}}i.options.__b=function(e){s=null,l&&l(e)},i.options.__r=function(e){d&&d(e),r=0;var t=(s=e.__c).__H;t&&(t.__h.forEach(w),t.__h.forEach(A),t.__h=[])},i.options.diffed=function(e){c&&c(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==u.push(t)&&o===i.options.requestAnimationFrame||((o=i.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),S&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);S&&(t=requestAnimationFrame(n))})(I)),s=null},i.options.__c=function(e,t){t.some(function(e){try{e.__h.forEach(w),e.__h=e.__h.filter(function(e){return!e.__||A(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],i.options.__e(n,e.__v)}}),p&&p(e,t)},i.options.unmount=function(e){v&&v(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{w(e)}catch(e){t=e}}),t&&i.options.__e(t,n.__v))};var S="function"==typeof requestAnimationFrame;function w(e){var t=s,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),s=t}function A(e){var t=s;e.__c=e.__(),s=t}function C(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function P(e,t){return"function"==typeof t?t(e):t}},47488:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var r=n(34576),s=n(6024),o=n(20259),i=n(25159),a=(0,r.EW)(()=>{var e,t=null==(e=o.bK.value)?void 0:e.languages;if(!t)return s.cb;if(Array.isArray(t.enabled)&&t.enabled.length>0){var n=[];for(var r of t.enabled)if(s.cb.includes(r))n.push(r);else{var a=(0,s.yS)(r);a?n.push(a):console.error(i.a.didomiPrefix+"The language "+r+" is not supported")}if(n.length>0)return n}})},48082:function(e,t,n){var r={"./amazon/amazon.js":[5649,"src_sdk_core_modules_integrations_sdk-integrations_providers_amazon_amazon_js"],"./gcm/gcm.js":[92968,"src_sdk_core_modules_integrations_sdk-integrations_providers_gcm_gcm_js"],"./get-applicable-providers.js":[56067],"./google/google.js":[84635,"src_sdk_core_modules_integrations_sdk-integrations_providers_google_google_js"],"./load-provider-module.js":[73307],"./microsoft/microsoft.js":[26499,"src_sdk_core_modules_integrations_sdk-integrations_providers_microsoft_microsoft_js"],"./salesforce-dmp/salesforce-dmp.js":[51227,"src_sdk_core_modules_integrations_sdk-integrations_providers_salesforce-dmp_salesforce-dmp_js"],"./wordpress/wordpress.js":[3663,"src_sdk_core_modules_integrations_sdk-integrations_providers_wordpress_wordpress_js"]};function s(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],s=t[0];return Promise.all(t.slice(1).map(n.e)).then(function(){return n(s)})}s.keys=function(){return Object.keys(r)},s.id=48082,e.exports=s},49049:function(e,t,n){"use strict";n.d(t,{l:function(){return o}});var r=n(34576),s=n(97531),o=(0,r.EW)(()=>{var e;return(null==(e=s.E.value)?void 0:e.filter(e=>{var t,n;return!!e.namespaces&&(Object.keys(e.namespaces).includes("google")&&!(null==e||null==(t=e.namespaces)||null==(n=t.google)||!n.current))}))||[]})},50010:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r=n(58168),s=n(34576),o=n(34956),i=(0,s.EW)(()=>{var e,t,n,s;return null!=(e=o.h.value)&&e.length?null==(t=o.h.value)||null==(n=t.map(e=>({[e.id]:e.didomiId})))||null==(s=n.filter(Boolean))?void 0:s.reduce((e,t)=>(0,r.A)({},e,t),{}):{}})},50172:function(e,t,n){"use strict";n.r(t),n.d(t,{Component:function(){return _},Fragment:function(){return y},cloneElement:function(){return F},createContext:function(){return z},createElement:function(){return g},createRef:function(){return b},h:function(){return g},hydrate:function(){return M},isValidElement:function(){return i},options:function(){return s},render:function(){return j},toChildArray:function(){return k}});var r,s,o,i,a,u,l,d,c={},p=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,n){var s,o,i,a={};for(i in t)"key"==i?s=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return m(e,a,s,o,null)}function m(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++o:i};return null==i&&null!=s.vnode&&s.vnode(a),a}function b(){return{current:null}}function y(e){return e.children}function _(e,t){this.props=e,this.context=t}function I(e,t){if(null==t)return e.__?I(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t0?m(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(f=S[d])||f&&h.key==f.key&&h.type===f.type)S[d]=void 0;else for(v=0;v2&&(a.children=arguments.length>3?r.call(arguments,2):n),m(e.type,a,s||e.key,o||e.ref,null)}function z(e,t){var n={__c:t="__cC"+d++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(w)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=p.slice,s={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&null!=o.getDerivedStateFromError&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},_.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},_.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,A.__r=0,d=0},50378:function(e,t,n){"use strict";n.d(t,{F8:function(){return v},r1:function(){return f},Go:function(){return l},bD:function(){return c},zw:function(){return u},or:function(){return d},Jt:function(){return i},gi:function(){return b},Im:function(){return p},Et:function(){return g},Qd:function(){return a},Kg:function(){return m},hZ:function(){return o},zu:function(){return h}});var r=Object.prototype.hasOwnProperty;function s(e,t){var n,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((o=e.length)===t.length)for(;o--&&s(e[o],t[o]););return-1===o}if(!n||"object"==typeof e){for(n in o=0,e){if(r.call(e,n)&&++o&&!r.call(t,n))return!1;if(!(n in t)||!s(e[n],t[n]))return!1}return Object.keys(t).length===o}}return e!=e&&t!=t}var o=(e,t,n)=>function(e,t,n){t.split&&(t=t.split("."));for(var r,s,o=0,i=t.length,a=e;ofunction(e,t,n,r,s){for(t=t.split?t.split("."):t,r=0;r"object"==typeof e&&null!==e&&e.constructor===Object;function u(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(n in e&&a(e[n])&&a(t[n])?e[n]=u(e[n],t[n]):e[n]=t[n]);return e}function l(e){return JSON.parse(JSON.stringify("object"==typeof e?e:{}))}function d(e,t){return u(l(e),t)}var c=(e,t)=>s(e,t),p=e=>e&&e.constructor===Object&&0===Object.keys(e).length,v=e=>Object.values(e).every(e=>!e),f=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var n=[...e].sort(),r=[...t].sort(),s=0;s"function"==typeof Object.values?Object.values(e):Object.keys(e).map(t=>e[t]),g=e=>"number"==typeof e?!isNaN(e):e instanceof Number&&!isNaN(e.valueOf()),m=e=>"string"==typeof e||e instanceof String,b=e=>Array.isArray(e)?e:[]},50513:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(35968),s=n(22639),o=e=>{var t,n;if(!e||"category"===e.type)return e;var o=(0,r.z)(e.purposeId);return o?{id:"cat-"+o.id,type:"category",name:o.name,description:o.description,children:[{type:"purpose",purposeId:o.id}],agree:null==(t=s.v.value.content)?void 0:t.agree,disagree:null==(n=s.v.value.content)?void 0:n.disagree}:e}},51117:function(e,t,n){var r={"./ar-JO/onesky.json":[51527,"onesky-texts-ar-JO-onesky-json"],"./ar/onesky.json":[95361,"onesky-texts-ar-onesky-json"],"./az-AZ/onesky.json":[63371,"onesky-texts-az-AZ-onesky-json"],"./be/onesky.json":[45891,"onesky-texts-be-onesky-json"],"./bg/onesky.json":[8313,"onesky-texts-bg-onesky-json"],"./bn-IN/onesky.json":[50912,"onesky-texts-bn-IN-onesky-json"],"./bs/onesky.json":[26253,"onesky-texts-bs-onesky-json"],"./ca/onesky.json":[38884,"onesky-texts-ca-onesky-json"],"./cs/onesky.json":[59774,"onesky-texts-cs-onesky-json"],"./cy/onesky.json":[93580,"onesky-texts-cy-onesky-json"],"./da/onesky.json":[49293,"onesky-texts-da-onesky-json"],"./de-AT/onesky.json":[10957,"onesky-texts-de-AT-onesky-json"],"./de-CH/onesky.json":[89907,"onesky-texts-de-CH-onesky-json"],"./de/onesky.json":[99817,"onesky-texts-de-onesky-json"],"./el/onesky.json":[91771,"onesky-texts-el-onesky-json"],"./en-CA/onesky.json":[18286,"onesky-texts-en-CA-onesky-json"],"./en-GB/onesky.json":[5685,"onesky-texts-en-GB-onesky-json"],"./en-NZ/onesky.json":[89578,"onesky-texts-en-NZ-onesky-json"],"./en/onesky.json":[31697,"onesky-texts-en-onesky-json"],"./es/onesky.json":[69048,"onesky-texts-es-onesky-json"],"./et/onesky.json":[21395,"onesky-texts-et-onesky-json"],"./eu/onesky.json":[49134,"onesky-texts-eu-onesky-json"],"./fi/onesky.json":[71371,"onesky-texts-fi-onesky-json"],"./fil/onesky.json":[21373,"onesky-texts-fil-onesky-json"],"./fr-BE/onesky.json":[23966,"onesky-texts-fr-BE-onesky-json"],"./fr-CA/onesky.json":[62125,"onesky-texts-fr-CA-onesky-json"],"./fr/onesky.json":[28948,"onesky-texts-fr-onesky-json"],"./gl/onesky.json":[9753,"onesky-texts-gl-onesky-json"],"./he/onesky.json":[65101,"onesky-texts-he-onesky-json"],"./hi-IN/onesky.json":[38015,"onesky-texts-hi-IN-onesky-json"],"./hr/onesky.json":[2526,"onesky-texts-hr-onesky-json"],"./hu/onesky.json":[48669,"onesky-texts-hu-onesky-json"],"./id/onesky.json":[19223,"onesky-texts-id-onesky-json"],"./it/onesky.json":[21671,"onesky-texts-it-onesky-json"],"./ja/onesky.json":[26463,"onesky-texts-ja-onesky-json"],"./ka/onesky.json":[65804,"onesky-texts-ka-onesky-json"],"./ko/onesky.json":[27810,"onesky-texts-ko-onesky-json"],"./lt/onesky.json":[61884,"onesky-texts-lt-onesky-json"],"./lv/onesky.json":[83686,"onesky-texts-lv-onesky-json"],"./mk-MK/onesky.json":[72233,"onesky-texts-mk-MK-onesky-json"],"./ms/onesky.json":[82016,"onesky-texts-ms-onesky-json"],"./mt/onesky.json":[88443,"onesky-texts-mt-onesky-json"],"./nl-BE/onesky.json":[42668,"onesky-texts-nl-BE-onesky-json"],"./nl/onesky.json":[69026,"onesky-texts-nl-onesky-json"],"./no/onesky.json":[70141,"onesky-texts-no-onesky-json"],"./pl/onesky.json":[89672,"onesky-texts-pl-onesky-json"],"./pt-BR/onesky.json":[37225,"onesky-texts-pt-BR-onesky-json"],"./pt/onesky.json":[92752,"onesky-texts-pt-onesky-json"],"./ro/onesky.json":[46593,"onesky-texts-ro-onesky-json"],"./ru/onesky.json":[71459,"onesky-texts-ru-onesky-json"],"./sk/onesky.json":[10198,"onesky-texts-sk-onesky-json"],"./sl/onesky.json":[45749,"onesky-texts-sl-onesky-json"],"./sq/onesky.json":[34660,"onesky-texts-sq-onesky-json"],"./sr-Latn/onesky.json":[60403,"onesky-texts-sr-Latn-onesky-json"],"./sr/onesky.json":[4467,"onesky-texts-sr-onesky-json"],"./sv/onesky.json":[85543,"onesky-texts-sv-onesky-json"],"./sw/onesky.json":[16882,"onesky-texts-sw-onesky-json"],"./th/onesky.json":[87552,"onesky-texts-th-onesky-json"],"./tl/onesky.json":[50540,"onesky-texts-tl-onesky-json"],"./tr/onesky.json":[11346,"onesky-texts-tr-onesky-json"],"./uk/onesky.json":[99024,"onesky-texts-uk-onesky-json"],"./vi/onesky.json":[97403,"onesky-texts-vi-onesky-json"],"./zh-CN/onesky.json":[53072,"onesky-texts-zh-CN-onesky-json"],"./zh-TW/onesky.json":[12032,"onesky-texts-zh-TW-onesky-json"]};function s(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],s=t[0];return n.e(t[1]).then(function(){return n.t(s,19)})}s.keys=function(){return Object.keys(r)},s.id=51117,e.exports=s},51373:function(e,t,n){"use strict";n.d(t,{V:function(){return s},z:function(){return r}});var r=e=>Array.isArray(e)&&e.length>0?e.join(",")+",":"",s=e=>"string"==typeof e&&e.length>0?e.split(",").map(e=>e.trim()).filter(e=>e.length>0):[]},52140:function(e,t,n){"use strict";n.d(t,{J_:function(){return b},MM:function(){return g},NT:function(){return h},Rf:function(){return v},_k:function(){return f},yN:function(){return m}});var r=n(87127),s=n(38311),o=n(90013),i={path:"/",expiry:365},a={cookies:!0,localStorage:!0},u={organizationUserId:"o",organizationUserIdAuthAlgorithm:"a",organizationUserIdAuthDigest:"d",organizationUserIdAuthSalt:"s",organizationUserIdAuthSid:"si",organizationUserIdExp:null,organizationUserIdIv:"i"},l=Object.keys(u).filter(e=>!!u[e]).reduce((e,t)=>(e[u[t]]=t,e),{}),d={"hash-md5":1,"hash-sha1":2,"hash-sha256":3,"hmac-sha1":4,"hmac-sha256":5,"aes-256-cbc":6},c=Object.keys(d).reduce((e,t)=>(e[d[t]]=t,e),{}),p=["hash-md5","hash-sha1","hash-sha256","hmac-sha1","hmac-sha256"];function v(e,t){var n,o;return void 0===t&&(t=a),t.cookies&&(n=(0,r.Ri)(e)),t.localStorage&&(o=(0,s._S)(e)),n||o}function f(e,t,n,i){var u,l,d,c;return void 0===n&&(n=a),n.cookies&&((u=(0,r.Ri)(e))||(u=(0,r.Ri)(i))&&(0,o.B)(!0),l=(0,r.Ri)(t),u&&l)?{didomiToken:u,iabConsentString:l}:n.localStorage&&((d=(0,s._S)(e))||(d=(0,s._S)(i))&&(0,o.B)(!0),c=(0,s._S)(t),d&&c)?{didomiToken:d,iabConsentString:c}:{didomiToken:u||d,iabConsentString:l||c}}function h(e,t,n,o,u,l,d,c){if(void 0===n&&(n=null),void 0===o&&(o=a),void 0===u&&(u=!1),void 0===l&&(l=!1),o.cookies){var p=null;l&&(u?(p="None",c=!0):p="Lax"),(0,r.TV)(e,t,void 0===d?i.expiry:d,n,p,c,i.path)}o.localStorage&&(0,s.AP)(e,t)}function g(e,t,n,o,i){void 0===t&&(t=null),(0,r.Yj)(e,t,n,o,i),(0,s.bJ)(e)}function m(e){var t={},n=e.organizationUserIdAuthAlgorithm;return!n||function(e){return-1!==p.indexOf(e)}(n)?t.organizationUserId=e.organizationUserId:t=e,Object.keys(t).reduce((e,n)=>(u[n]&&t[n]&&(e[u[n]]="organizationUserIdAuthAlgorithm"===n&&d[t[n]]||t[n]),e),{})}function b(e){return Object.keys(e).reduce((t,n)=>(l[n]&&e[n]&&(t[l[n]]="a"===n&&c[e[n]]||e[n]),t),{})}},52477:function(e,t,n){"use strict";n.d(t,{u:function(){return s},v:function(){return o}});var r=new RegExp("([0-9]{4})(-([0-9]{2})(-([0-9]{2})(T([0-9]{2}):([0-9]{2})(:([0-9]{2})(\\.([0-9]+))?)?(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?"),s=e=>{if("string"!=typeof e)return null;var t=e.match(r);if(null===t)return null;var n=0,s=new Date(parseInt(t[1],10),0,1);t[3]&&s.setMonth(parseInt(t[3],10)-1),t[5]&&s.setDate(parseInt(t[5],10)),t[7]&&s.setHours(parseInt(t[7],10)),t[8]&&s.setMinutes(parseInt(t[8],10)),t[10]&&s.setSeconds(parseInt(t[10],10)),t[12]&&s.setMilliseconds(1e3*parseFloat("0."+t[12])),t[14]&&(n=60*parseInt(t[16],10)+parseInt(t[17],10),n*="-"===t[15]?1:-1),n-=s.getTimezoneOffset();var o=s.getTime()+60*n*1e3;return new Date(o)},o=function(e,t){void 0===t&&(t=13);var n=s(e);if(!n)return!0;var r=(new Date).getTime()-n.getTime();return r>0&&r>=26298e5*t}},52772:function(e,t,n){"use strict";n.d(t,{X:function(){return p}});var r=n(77396),s=n(15067),o=n(67447),i=n(34576),a=n(58623),u=n(75240),l=n(80759),d=n(58975),c=n(58134),p=(0,i.EW)(()=>{var e,t=s.t.value.purposeIds,n=s.t.value.purposeIdsBasedOnLI,i=s.t.value.purposeIdsBasedOnConsent,p=r.T.value,v=o.a.value.byLegalBasis.consent.purposes.enabled,f=o.a.value.byLegalBasis.li.purposes.enabled,h=o.a.value.byLegalBasis.consent.purposesById,g=o.a.value.byLegalBasis.li.purposesById,m=(0,l.$)(null==(e=u.q.value)?void 0:e.purposes,s.t.value.purposeIds,p),b=i.filter(e=>void 0!==h[e]?h[e]:(0,c.U)(e,a.x.value.isEnabled,m,d.iS.optin,d.B.value.optin.default)),y=n.filter(e=>void 0!==g[e]?g[e]:(0,c.U)(e,a.x.value.isEnabled,m,d.iS.optout,d.B.value.optout.default)),_=[];for(var I of t){var S=!0;n.includes(I)&&(S=S&&y.includes(I)),i.includes(I)&&(S=S&&b.includes(I)),p.includes(I)&&(S=!0),S&&_.push(I)}var w=t.filter(e=>!_.includes(e));return{enabledPurposeIds:v,enabledLIPurposeIds:f,resolvedEnabledConsentPurposeIds:b,resolvedEnabledLIPurposeIds:y,currentUserStatusEnabledPurposeIds:_,currentUserStatusDisabledPurposeIds:w}})},52926:function(e,t,n){"use strict";n.r(t),n.d(t,{GVL:function(){return W.aI},TCF_PURPOSES_REVERSE_MAP:function(){return I.o},TCModel:function(){return W.jT},TCString:function(){return W.de},applyPublisherRestrictions:function(){return U},decodeTCString:function(){return X.N},decodeVendorIds:function(){return ae.v},encodeToken:function(){return Y},encodeUserStatus:function(){return de},encodeVendorIds:function(){return ie.h},getDefaultStrings:function(){return ne},getIABTCFPurposes:function(){return se},getIABTCFRequiredVendors:function(){return N},getIABTCFVendorListCore:function(){return oe},getIABTCFVendors:function(){return D},getIABTCFVendorsProcessingRules:function(){return B},initIABTCF:function(){return z},tcModelToToken:function(){return Q.D},tokenToTcModel:function(){return Z},transformPublisherRestriction:function(){return f},unminimizeVendorListCore:function(){return re}});var r,s,o=n(83960),i=n(29047);!function(e){e.All="all",e.Allow="allow",e.Disallow="disallow",e.ReqConsent="req-consent",e.ReqLI="req-li"}(r||(r={})),function(e){e.List="list",e.All="all"}(s||(s={}));var a,u=n(56834),l=n(24310),d=Object.values(s),c=Object.values(r),p=e=>{if(null==e)return!1;var{id:t,purposeId:n,vendors:o,restrictionType:a}=e,p=null==o?void 0:o.type,v=null==o?void 0:o.ranges,f=null==o?void 0:o.ids,h=!!n&&l.F[n],g=h?l.F[n]:u.P[n];if("string"!=typeof t||0===t.length)return console.error('Didomi - Invalid restriction ID "'+t+'" provided for publisher restrictions'),!1;if(void 0===g)return console.error('Didomi - Invalid purpose ID or special feature ID "'+n+'" provided for publisher restrictions'),!1;if(h){if(p!==s.All)return console.error("Didomi - Only vendor restriction type 'all' is valid for special features"),!1;if(a!==r.Disallow)return console.error("Didomi - Only restriction type 'disallow' is valid for special features"),!1}else{if(void 0===p||!d.includes(p))return console.error('Didomi - Invalid vendor restriction type "'+p+'" provided for publisher restrictions'),!1;if(p===s.List)if(Array.isArray(f)&&0!==f.length){if(!f.every(e=>"number"==typeof e))return console.error("Didomi - Vendor IDs for publisher restrictions should be numerical values"),!1}else{if(!Array.isArray(v)||0===v.length)return console.error("Didomi - Invalid vendor restriction ranges provided for publisher restrictions"),!1;if(!v.every(e=>{var t=new Set(Object.keys(e));return"object"==typeof e&&t.has("start")&&t.has("end")&&e.start{if(t===s.All)return e===r.Allow?[]:i;var a=e===r.Allow,u=new Set,l=new Set(n);if(n&&n.length>0)if(a)for(var d of i)l.has(d)||u.add(d);else for(var c of n)u.add(c);if(o&&o.length>0)if(a){var p=e=>{for(var{start:t,end:n}of o)if(e>=t&&e<=n)return!0;return!1};for(var v of i)p(v)||u.add(v)}else for(var{start:f,end:h}of o)for(var g=f;g<=h;g++)u.add(g);return[...u]},f=(e,t)=>{var n,r,{id:s,purposeId:o,vendors:i,restrictionType:a}=e,u=null==i?void 0:i.type,l=null!==(n=null==i?void 0:i.ranges)&&void 0!==n?n:[],d=null!==(r=null==i?void 0:i.ids)&&void 0!==r?r:[];if(void 0!==s&&void 0!==o)return{id:s,purposeId:o,vendors:v(a,u,d,l,t),restrictionType:a,vendorRestrictionType:u}},h=[],g=(e,t)=>{Array.isArray(e)&&(h=e.reduce((e,n)=>{if(p(n)){var r=f(n,t);void 0!==r&&e.push(r)}return e},[]))},m={google:755},b={didomiVendorIdsMapping:m,removeDeletedVendors:!1},y=n(23984),_=e=>(0,y.l)(e,b),I=n(59113),S=n(70949),w=n(58168),A=Object.values(I.o),C={purposeIds:[i.T.Cookies,i.T.CreateAdsProfile,i.T.SelectPersonalizedAds],legIntPurposeIds:[i.T.SelectBasicAds,i.T.MeasureAdPerformance,i.T.MarketResearch,i.T.ImproveProducts]},P=(0,w.A)({},C,{didomiId:"google",id:"google"}),k={amazon:{purposeIds:A,legIntPurposeIds:[],didomiId:"amazon",id:"amazon"},facebook:(0,w.A)({},C,{didomiId:"facebook",id:"facebook",namespaces:{google:{id:2468,current:!0}}}),twitter:{purposeIds:[i.T.Cookies],legIntPurposeIds:[],didomiId:"twitter",id:"twitter"},whatsapp:{purposeIds:[i.T.Cookies],legIntPurposeIds:[],didomiId:"whatsapp",id:"whatsapp"},"google-adsense":{purposeIds:A,legIntPurposeIds:[],id:"google-adsense",didomiId:"google-adsense"},"google-adx":{purposeIds:A,legIntPurposeIds:[],id:"google-adsense",didomiId:"google-adx"},addthis:{purposeIds:A,legIntPurposeIds:[],didomiId:"addthis",id:"google-adsense"},salesforce:{purposeIds:A,legIntPurposeIds:[],didomiId:"salesforce",id:"salesforce"}},E=e=>{var t,n=null===(t=e.namespaces)||void 0===t?void 0:t.google;return"object"==typeof n&&void 0!==n.id&&!0===n.current},O=n(8035),T=n(76381),L=function(e,t,n,s,o){void 0===o&&(o=!1);var i=((e,t)=>"string"!=typeof e?t?S.S[e]:I.o[e]:e)(e,o),a=new Set([r.Disallow,r.Allow,n]);return s.filter(((e,t)=>n=>n.purposeId===e&&n.vendors.includes(t))(i,t)).some(e=>a.has(e.restrictionType))},x=e=>[...new Set(e)];!function(e){e.optin="purposeIds",e.optout="legIntPurposeIds"}(a||(a={}));var R=(e,t,n)=>{if(!n||0===n.length)return[];var s=t===r.ReqConsent?a.optout:a.optin;return((e,t)=>e.flexiblePurposeIds.filter(n=>e[t].includes(n)))(e,s).filter(s=>{var o=L(s,e.id,r.Disallow,n),i=L(s,e.id,t,n);return!o&&i})},U=(e,t)=>t&&0!==t.length?e.reduce((e,n)=>{var s=(0,w.A)({},n,{purposeIds:n.purposeIds.filter(e=>!L(e,n.id,r.ReqLI,t,!1)),legIntPurposeIds:n.legIntPurposeIds.filter(e=>!L(e,n.id,r.ReqConsent,t,!1)),specialFeatureIds:n.specialFeatureIds.filter(e=>!L(e,n.id,r.Disallow,t,!0))});return s.purposeIds=x([...s.purposeIds,...R(n,r.ReqConsent,t)]),s.legIntPurposeIds=x([...s.legIntPurposeIds,...R(n,r.ReqLI,t)]),(e=>0===e.purposeIds.length&&0===e.legIntPurposeIds.length&&0===e.specialPurposeIds.length)(s)||e.push(s),e},[]):e,D=()=>void 0===(null==o._B?void 0:o._B.vendors)?void 0:U(o._B.vendors,null!=h?h:[]),N=()=>{var e=D();if(void 0===O.k||void 0===e)return[];var t=((e,t)=>{var n,r,s,o,i,a,u=null===(n=e.vendors)||void 0===n?void 0:n.iab,l=new Set;if(!u)return l;var d=new Set(t.map(e=>e.id)),c=t.reduce((e,t)=>(t.tmpDeletedDate&&e.add(t.id),e),new Set),p=!0===(null==T.B?void 0:T.B.removeDeletedVendors);if(Array.isArray(u)&&(l=new Set(u.filter(e=>d.has(e)))),u===Object(u)&&u.all)l=new Set(d);else if(u.include&&Array.isArray(u.include))for(var v of u.include)d.has(v)&&l.add(v);if(u.exclude&&Array.isArray(u.exclude))for(var f of u.exclude)l.delete(f);var h=null!==(s=null===(r=null==T.B?void 0:T.B.didomiVendorIdsMapping)||void 0===r?void 0:r.google)&&void 0!==s?s:m.google,g=null===(o=u.include)||void 0===o?void 0:o.includes(h),b=null===(i=u.exclude)||void 0===i?void 0:i.includes(h),y=null===(a=e.vendors)||void 0===a?void 0:a.didomi,_=null==y?void 0:y.includes("google");if(p)for(var I of l)c.has(I)&&l.delete(I);return(u.all||g||_)&&!b&&l.add(h),l})(O.k,e);return null==e?void 0:e.filter(e=>t.has(e.id))},B=()=>{var e=N(),t=(e=>{var t,n;return null!==(n=null===(t=null==e?void 0:e.vendors)||void 0===t?void 0:t.custom)&&void 0!==n?n:[]})(O.k),n=(e=>{var t,n;return(null!==(n=null===(t=null==e?void 0:e.vendors)||void 0===t?void 0:t.didomi)&&void 0!==n?n:[]).map(e=>k[e]).filter(Boolean)})(O.k);if(e&&0!==e.length||t&&t.length||n&&n.length)return function(e,t,n,r){var s;void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r={});var o,i={purposes:{ids:new Set,optin:new Set,optout:new Set,essential:new Set},vendors:{optin:new Set,optout:new Set,disclosed:new Set,specialFeatures:new Set,specialPurposes:new Set}},a=null!==(s=r.google)&&void 0!==s?s:m.google,d=new Set;for(var c of e){d.add(c.id),c.id===a&&(o=c);var p=new Set;if(i.vendors.disclosed.add(c.id),c.legIntPurposeIds&&c.legIntPurposeIds.length>0)for(var v of(i.vendors.optout.add(c.id),c.legIntPurposeIds)){var f=I.o[v];i.purposes.optout.add(f),i.purposes.ids.add(f),p.add("optout")}if(c.purposeIds&&c.purposeIds.length>0)for(var h of(i.vendors.optin.add(c.id),c.purposeIds)){var g=I.o[h];i.purposes.optin.add(g),i.purposes.ids.add(g),p.add("optin")}if(c.specialFeatureIds&&c.specialFeatureIds.length>0){for(var b of c.specialFeatureIds){var y=S.S[b];i.purposes.optin.add(y),i.purposes.ids.add(y),p.add("optin")}c.purposeIds&&0==c.purposeIds.length&&(i.vendors.specialFeatures.add(c.id),p.add("specialFeatures"))}0===p.size&&c.specialPurposeIds.length>0&&(i.vendors.specialPurposes.add(c.id),p.add("specialPurposes"))}var _=n.filter(e=>{var t,n,s=r[null!==(n=null!==(t=e.didomiId)&&void 0!==t?t:e.id)&&void 0!==n?n:""];return void 0===s||!d.has(s)}),w=[...t,..._],A=o?{purposeIds:[...o.purposeIds.map(e=>I.o[e]),...o.specialFeatureIds.map(e=>S.S[e])],legIntPurposeIds:o.legIntPurposeIds.map(e=>I.o[e])}:P;for(var C of w){var k=E(C)?A:C;if(k.legIntPurposeIds&&k.legIntPurposeIds.length>0)for(var O of k.legIntPurposeIds)(u.P[O]||l.F[O])&&(i.purposes.optout.add(O),i.purposes.ids.add(O));if(k.purposeIds&&k.purposeIds.length>0)for(var T of k.purposeIds)(u.P[T]||l.F[T])&&(i.purposes.optin.add(T),i.purposes.ids.add(T))}return{vendors:{optin:[...i.vendors.optin],optout:[...i.vendors.optout],disclosed:[...i.vendors.disclosed],specialFeatures:[...i.vendors.specialFeatures],specialPurposes:[...i.vendors.specialPurposes]},purposes:{ids:[...i.purposes.ids],optin:[...i.purposes.optin],optout:[...i.purposes.optout],essential:[...i.purposes.essential]}}}(e,t,n,null==T.B?void 0:T.B.didomiVendorIdsMapping)},V=n(28221),j=n(81509),M=e=>/^[A-Za-z0-9-_]+$/.test(e),F=()=>{var e,t,n,r,s,o={processingRules:{ids:new Set,optin:new Set,optout:new Set}},a=(()=>{var e,t=null==O.k?void 0:O.k.customPurposes,n=null!==(e=null==O.k?void 0:O.k.disabledPurposes)&&void 0!==e?e:[],r=[];if(t&&Array.isArray(t))for(var s of t)"string"==typeof s.id&&M(s.id)?n.includes(s.id)||r.push((0,w.A)({},s,{namespace:"custom"})):console.error('Didomi - The purpose id "'+s.id+'" is not valid. Ignoring it.');return r})(),u=a.map(e=>String(e.id)),l=(e=>{var t=null==O.k?void 0:O.k.essentialPurposes;if(!t||!Array.isArray(t))return new Set;var n=new Set(e);return t.reduce((e,t)=>(n.has(t)&&e.add(t),e),new Set)})(u),d=Object.values(i.T),c=new Set([...d,...u]),p=null!==(t=null===(e=null==O.k?void 0:O.k.vendors)||void 0===e?void 0:e.custom)&&void 0!==t?t:[],v=e=>c.has(e),f=new Set,h=a.reduce((e,t)=>{var n,r=null===(n=t.namespaces)||void 0===n?void 0:n.pub,s=t.id;return r&&(e=>"number"==typeof e&&e>0)(r)&&"string"==typeof s&&c.has(s)&&(e[s]=r),e},{});if(Array.isArray(p))for(var g of p){var m=(null!==(n=g.purposeIds)&&void 0!==n?n:[]).filter(v),b=(null!==(r=g.legIntPurposeIds)&&void 0!==r?r:[]).filter(v);for(var y of m)f.add(y);for(var _ of b)f.add(_);if("1st_party"===g.type&&(m.length>0||b.length>0)){for(var I of m)o.processingRules.ids.add(I),l.has(I)||o.processingRules.optin.add(I);for(var S of b)o.processingRules.ids.add(S),l.has(S)||o.processingRules.optout.add(S)}}var A=new Set(null!==(s=null==V.B?void 0:V.B.purposes.ids)&&void 0!==s?s:d);for(var C of u)o.processingRules.ids.has(C)||A.has(C)||f.has(C)||(o.processingRules.ids.add(C),l.has(C)||o.processingRules.optin.add(C));return{processingRules:{ids:[...o.processingRules.ids],optin:[...o.processingRules.optin],optout:[...o.processingRules.optout],essential:[...l]},mapping:h}},z=function(e,t,n){var r,s,i,a,u,l;void 0===n&&(n=void 0),(0,o.ug)(e),(0,T.$)(_(n)),(0,O.e)(t);var d=null!==(r=e.vendors.map(e=>e.id))&&void 0!==r?r:[],c=null!==(a=null===(i=null===(s=null==t?void 0:t.vendors)||void 0===s?void 0:s.iab)||void 0===i?void 0:i.restrictions)&&void 0!==a?a:[];g(c,d),(0,V.$)(null!==(u=null==T.B?void 0:T.B.processingRules)&&void 0!==u?u:B()),(0,j.z)(null!==(l=null==T.B?void 0:T.B.firstPartyPurposes)&&void 0!==l?l:F())},W=n(76638),G=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())),H=(e,t)=>e.reduce((e,n)=>{if("number"==typeof n)e.push(n);else{var r=t[n];void 0!==r&&e.push(r)}return e},[]),K=e=>{switch(e){case r.Allow:case r.Disallow:return 0;case r.ReqConsent:return 1;case r.ReqLI:return 2}},J=n(90923),q=()=>{if("object"!=typeof o._B||"object"!=typeof o.Hd)throw new Error("Didomi - IAB TCF not initialized")},Z=function(e,t){var n,i;if(void 0===t&&(t=void 0),"object"!=typeof o._B||"object"!=typeof o.Hd||"object"!=typeof T.B)throw new Error("Didomi - IAB TCF not initialized");var a=null!==(i=null===(n=null==V.B?void 0:V.B.vendors)||void 0===n?void 0:n.specialPurposes)&&void 0!==i?i:[],d=T.B.didomiVendorIdsMapping,c=H(e.purposes.enabled,u.P),p=H(e.purposes.enabled,l.F),v=H(e.vendors.enabled,d),f=H(e.vendors_li.enabled,d),g=H(e.purposes_li.enabled,u.P),m=G(new Date(e.created)),b=G(new Date(e.updated)),y=new W.jT(new W.aI(o.Hd));y.vendorListVersion=o.Hd.vendorListVersion,y.cmpId=null==t?void 0:t.cmpId,y.cmpVersion=null==t?void 0:t.cmpVersion,y.created=m,y.lastUpdated=b,y.consentScreen=1,y.consentLanguage=null==t?void 0:t.consentLanguage,y.isServiceSpecific=!0;var _=(e=>null==e?void 0:e.country)(O.k);for(var I of(_&&(y.publisherCountryCode=_),y.purposeConsents.set(c),y.purposeLegitimateInterests.set(g),y.purposeLegitimateInterests.unset((0,J.R)()),y.vendorConsents.set(v),y.vendorLegitimateInterests.set(f),a&&a.length>0&&y.vendorLegitimateInterests.set(a),y.publisherConsents.set(c),y.publisherLegitimateInterests.set(g),y.specialFeatureOptins.set(p),h)){var S=new W.FY;if(S.purposeId=u.P[I.purposeId],void 0!==S.purposeId){var w=K(I.restrictionType);if(void 0!==w)if(S.restrictionType=w,I.vendorRestrictionType===s.All)I.restrictionType===r.Allow?y.publisherRestrictions.restrictPurposeToLegalBasis(S,[]):y.publisherRestrictions.restrictPurposeToLegalBasis(S);else{var A=H(I.vendors,d);for(var C of A)y.publisherRestrictions.add(C,S)}}}return j.W&&j.W.processingRules.ids.length>0&&function(e,t,n){if(void 0===n&&(n=!1),q(),j.W){var{processingRules:r,mapping:s}=j.W,o=r.ids.filter(e=>u.P[e]||s[e]);if(0!==o.length){n||(t.publisherConsents.empty(),t.publisherLegitimateInterests.empty());var i=new Set(r.optin),a=new Set(r.optout),l=t=>i.has(t)&&e.purposes.enabled.includes(t),d=t=>a.has(t)&&e.purposes_li.enabled.includes(t),c=0;for(var p of o){var v=u.P[p];if(v)l(p)&&t.publisherConsents.set(v),d(p)&&t.publisherLegitimateInterests.set(v);else{var f=s[p];f&&f>=1&&f<=63&&(c{(null==t?void 0:t.disclosedVendorsSegment)&&(q(),(null==o._B?void 0:o._B.vendors)&&(e.vendorsDisclosed.empty(),null==V.B||V.B.vendors.disclosed.forEach(t=>{e.vendorsDisclosed.set(Number(t))})))})(y,t),y},$={cmpId:7,cmpVersion:1,consentScreen:1,consentLanguage:"EN",isServiceSpecific:!0,disclosedVendorsSegment:!1,alwaysAddPurposesStatusToPublisherConsent:!1},Y=function(e,t){void 0===t&&(t=void 0);var n,r=((e,t)=>(0,y.l)((0,y.l)(e,t),$))(t,null==T.B?void 0:T.B.encoderOptions),s=Z(e,r);return(s.publisherConsents.size>0||s.publisherLegitimateInterests.size>0||s.publisherCustomConsents.size>0||s.publisherCustomLegitimateInterests.size>0)&&(n={segments:[W.Y4.CORE,W.Y4.PUBLISHER_TC]}),s.vendorsDisclosed.size>0&&(n=n?{segments:[W.Y4.CORE,W.Y4.VENDORS_DISCLOSED,W.Y4.PUBLISHER_TC]}:{segments:[W.Y4.CORE,W.Y4.VENDORS_DISCLOSED]}),W.de.encode(s,n)},Q=n(12880),X=n(66756),ee=e=>({vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},created:e,updated:e}),te={defaultLIToEnabled:!0,generate:{default:!0,positive:!0,negative:!0}},ne=e=>{var t,n,r,s,i,a,u=(e=>(0,y.l)(e,te))(e),l=null!==(t=null==u?void 0:u.defaultStringsCreatedDate)&&void 0!==t?t:G(new Date).toISOString(),d={created:l,vendorListVersion:null!==(n=null==o.Hd?void 0:o.Hd.vendorListVersion)&&void 0!==n?n:0},c=null===(r=null==u?void 0:u.defaultLIToEnabled)||void 0===r||r;return(null===(s=null==u?void 0:u.generate)||void 0===s?void 0:s.default)&&(d.default=Y(((e,t,n,r)=>{var s=ee(n);if(void 0===t||!e)return s;if(t&&e){for(var o of t.purposes.optout)s.purposes_li.enabled.push(o);for(var i of t.vendors.optout)s.vendors_li.enabled.push(i);if(r&&r.processingRules.ids.length>0)for(var a of r.processingRules.optout)s.purposes_li.enabled.push(a)}return s})(c,V.B,l,j.W))),(null===(i=null==u?void 0:u.generate)||void 0===i?void 0:i.positive)&&(d.positive=Y(((e,t,n)=>{var r=ee(t);if(void 0===e)return r;if(e){for(var s of e.purposes.optin)r.purposes.enabled.push(s);for(var o of e.purposes.optout)r.purposes_li.enabled.push(o);for(var i of e.vendors.optin)r.vendors.enabled.push(i);for(var a of e.vendors.optout)r.vendors_li.enabled.push(a)}if(n&&n.processingRules.ids.length>0){for(var u of n.processingRules.optin)r.purposes.enabled.push(u);for(var l of n.processingRules.optout)r.purposes_li.enabled.push(l)}return r})(V.B,l,j.W))),(null===(a=null==u?void 0:u.generate)||void 0===a?void 0:a.negative)&&(d.negative=Y(((e,t,n)=>{var r=ee(t);if(void 0===e)return r;if(e){for(var s of e.purposes.optin)r.purposes.disabled.push(s);for(var o of e.purposes.optout)r.purposes_li.disabled.push(o);for(var i of e.vendors.optin)r.vendors.disabled.push(i);for(var a of e.vendors.optout)r.vendors_li.disabled.push(a)}if(n&&n.processingRules.ids.length>0){for(var u of n.processingRules.optin)r.purposes.disabled.push(u);for(var l of n.processingRules.optout)r.purposes_li.disabled.push(l)}return r})(V.B,l,j.W))),d},re=e=>({vendorListVersion:e.v,lastUpdated:e.l,gvlSpecificationVersion:e.gsv,tcfPolicyVersion:e.tpv,purposes:e.p.map(e=>({id:e})),specialPurposes:e.sp.map(e=>({id:e})),features:e.f.map(e=>({id:e})),specialFeatures:e.sf.map(e=>({id:e})),stacks:e.st.map(e=>({id:e.i,purposeIds:e.p||[],specialFeatureIds:e.sf||[]})),vendors:e.s.map(e=>({id:e.i,purposeIds:e.p||[],flexiblePurposeIds:e.fp||[],specialPurposeIds:e.sp||[],legIntPurposeIds:e.l||[],featureIds:e.f||[],specialFeatureIds:e.sf||[],didomiId:e.di,tmpDeletedDate:e.dd}))}),se=()=>null==o._B?void 0:o._B.purposes.map(e=>(0,w.A)({},e,{id:I.o[e.id],namespace:"iab"})),oe=()=>o._B,ie=n(94382),ae=n(43682),ue=e=>e?Object.keys(e).map(t=>e[t]):[],le=(e,t)=>e&&Array.isArray(e)&&0!==e.length?e.reduce((e,n)=>{if(n)if("string"==typeof n){var r=t[n];r&&e.push(r)}else"number"==typeof n&&e.push(n);return e},[]):[],de=function(e,t,n,r,s,i){var a,u,l,d,c,p,v;void 0===i&&(i=void 0),(0,o.ug)((e=>{var t=Object.keys(e.vendors).map(t=>({id:e.vendors[t].id,tmpDeletedDate:e.vendors[t].deletedDate,purposeIds:e.vendors[t].purposes,flexiblePurposeIds:e.vendors[t].flexiblePurposes,specialPurposeIds:e.vendors[t].specialPurposes,legIntPurposeIds:e.vendors[t].legIntPurposes,featureIds:e.vendors[t].features,specialFeatureIds:e.vendors[t].specialFeatures,didomiId:e.vendors[t].didomiId||""})),n=ue(e.purposes),r=ue(e.specialPurposes),s=ue(e.features),o=ue(e.specialFeatures),i=ue(e.stacks).map(e=>({id:e.id,name:e.name,purposeIds:e.purposes,specialFeatureIds:e.specialFeatures})),a=new Date(e.lastUpdated).toISOString();return{vendorListVersion:e.vendorListVersion,lastUpdated:a,gvlSpecificationVersion:e.gvlSpecificationVersion,tcfPolicyVersion:e.tcfPolicyVersion,vendors:t,purposes:n,specialPurposes:r,features:s,specialFeatures:o,stacks:i}})(e)),(0,T.$)(_(i));var f=le(s,r),m=null!==(a=null==o._B?void 0:o._B.vendors.map(e=>e.id))&&void 0!==a?a:[],b=null===(u=t.publisher.restrictions)||void 0===u?void 0:u.map(e=>{var t;return(0,w.A)({},e,{id:e.purposeId+"-"+e.restrictionType,purposeId:e.purposeId,vendors:(0,w.A)({},e.vendors,{ids:le(null===(t=e.vendors)||void 0===t?void 0:t.ids,r)})})});b?g(b,m):h=[];var{token:y,processingRules:I,firstPartyPurposes:S}=function(e,t,n,r,s,o){void 0===o&&(o=void 0);var i={purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},created:new Date(t.created).toISOString(),updated:new Date(t.updated).toISOString()},a={purposes:{ids:new Set,optin:new Set,optout:new Set,essential:new Set},vendors:{optin:new Set,optout:new Set,disclosed:new Set,specialFeatures:new Set,specialPurposes:new Set}},u={processingRules:{ids:new Set,optin:new Set,optout:new Set},mapping:{}},l=e.reduce((e,t)=>(t.tmpDeletedDate&&e.add(t.id),e),new Set),d=!0===(null==o?void 0:o.removeDeletedVendors),c=e=>!(d&&l.has(e)),p=t.vendors.optin.reduce((e,t)=>{var r=n[t];return r&&c(r)&&e.add(r),e},new Set),v=t.vendors.optout.reduce((e,t)=>{var r=n[t];return r&&c(r)&&e.add(r),e},new Set),f=s.reduce((e,t)=>(c(t)&&e.add(t),e),new Set);for(var h of e){var g=new Set;p.has(h.id)&&(a.vendors.optin.add(h.id),i.vendors.enabled.push(h.id),g.add("optin"),a.vendors.disclosed.add(h.id)),v.has(h.id)&&(a.vendors.optout.add(h.id),i.vendors_li.enabled.push(h.id),g.add("optout"),a.vendors.disclosed.add(h.id)),(f.has(h.id)||a.vendors.disclosed.has(h.id))&&(a.vendors.disclosed.add(h.id),h.specialFeatureIds&&h.specialFeatureIds.length>0&&(g.has("optin")||(a.vendors.specialFeatures.add(h.id),g.add("specialFeatures"))),0===g.size&&h.specialPurposeIds.length>0&&(a.vendors.specialPurposes.add(h.id),g.add("specialPurposes")))}var m=e=>({iabId:r.purposes[e],pubId:r.customPurposes[e],specialFeatureId:r.specialFeatures[e]});for(var b of t.purposes.optin){var{iabId:y,pubId:_,specialFeatureId:I}=m(b);y||I?(a.purposes.optin.add(b),a.purposes.ids.add(b),i.purposes.enabled.push(b)):_&&(a.purposes.optin.add(b),a.purposes.ids.add(b),i.purposes.enabled.push(b),u.processingRules.ids.add(b),u.processingRules.optin.add(b),u.mapping[b]=_),(y||I)&&_&&(u.processingRules.ids.add(b),u.processingRules.optin.add(b))}for(var S of t.purposes.optout){var{iabId:w,pubId:A,specialFeatureId:C}=m(S);w||C?(a.purposes.optout.add(S),a.purposes.ids.add(S),i.purposes_li.enabled.push(S)):A&&(a.purposes.optout.add(S),a.purposes.ids.add(S),i.purposes_li.enabled.push(S),u.processingRules.ids.add(S),u.processingRules.optout.add(S),u.mapping[S]=A),(w||C)&&A&&(u.processingRules.ids.add(S),u.processingRules.optout.add(S))}return{token:i,processingRules:{purposes:{ids:[...a.purposes.ids],optin:[...a.purposes.optin],optout:[...a.purposes.optout],essential:[]},vendors:{optin:[...a.vendors.optin],optout:[...a.vendors.optout],disclosed:[...a.vendors.disclosed],specialFeatures:[...a.vendors.specialFeatures],specialPurposes:[...a.vendors.specialPurposes]}},firstPartyPurposes:{processingRules:{ids:[...u.processingRules.ids],optin:[...u.processingRules.optin],optout:[...u.processingRules.optout],essential:[]},mapping:u.mapping}}}(null!==(l=null==o._B?void 0:o._B.vendors)&&void 0!==l?l:[],t,r,n,f,i);(0,V.$)(null!==(d=null==i?void 0:i.processingRules)&&void 0!==d?d:I),(0,j.z)(null!==(c=null==i?void 0:i.firstPartyPurposes)&&void 0!==c?c:S);var A=null!==(v=null===(p=null==i?void 0:i.encoderOptions)||void 0===p?void 0:p.disclosedVendorsSegment)&&void 0!==v?v:s.length>0;return Y(y,{disclosedVendorsSegment:A})}},54971:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(55217);class s{constructor(){this.vendorsCalled=[],this.isContainerLoaded=!1,this.containerLoading=new Promise(e=>{(0,r.Tv)(t=>{window._oEa&&window.EA_collector&&window.EA_epmEnd&&(window._oEa.cookieset("didomi_eulerian",1,1),this.isContainerLoaded=!0,e(),t())},100,3e4)})}send(e){var t=window.EA_epmGet().filter(e=>!e.noconsent).map(t=>(-1!==(null==e?void 0:e.didomiVendorsConsent.indexOf(t.name+","))&&-1===this.vendorsCalled.indexOf(t.name)?(t.allowed=!0,t.denied=!1,this.vendorsCalled.push(t.name)):(t.allowed=!1,t.denied=!0),t));t.filter(e=>e.allowed).length>0&&(window.EA_epmSet(t),window.EA_epmEnd())}update(e){var{type:t,hasMadeAnyChoice:n,customVariables:r}=e;(n||"didomi-ready"!==t)&&(this.isContainerLoaded?this.send(r):this.containerLoading.then(()=>{this.send(r)}))}}},55217:function(e,t,n){"use strict";n.d(t,{Bf:function(){return s},FY:function(){return p},HF:function(){return u},JT:function(){return a},Tv:function(){return d},b5:function(){return o},bs:function(){return i},un:function(){return l},vA:function(){return c}});var r=n(25159);function s(e){return"string"!=typeof e||0===e.indexOf("javascript:")||/^https?:\/\//i.test(e)||(e="http://"+e),e}function o(e){return e.replace(/^https?:\/\//,"")}function i(){return(new Date).toISOString()}function a(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))}function u(){return"932d9f8c291f98a24970620e3f002281aa30b543"}function l(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}function d(e,t,n){if(!e||n{r+=t,e(()=>clearInterval(s)),r>=n&&clearInterval(s)},t);return!0}function c(e,t){void 0===t&&(t="");var n={},s=document.createElement("a");s.href=e;for(var o=s.search.substring(1).split("&"),i=0;ie.split("=")).reduce((e,t)=>{var[n,r]=t;return e[n]=r,e},{})[e]}},56067:function(e,t,n){"use strict";n.r(t),n.d(t,{getApplicableProviders:function(){return o}});var r=n(25159),s=new Set(["google","amazon","gcm","microsoft","salesforce-dmp","wordpress"]),o=e=>{var t=new Set;return null!=e&&e.vendors?(Object.keys(e.vendors).forEach(n=>{var o;!0===(null==(o=e.vendors[n])?void 0:o.enable)&&(s.has(n)?t.add(n):console.error(r.a.didomiPrefix+'The integration "'+n+'" is not supported. Possible values: '+[...s].join(", ")))}),t):t}},56247:function(e,t,n){var r={"./ar-JO/tcf/v2.2/index.json":[85095,"tcf-texts-ar-JO-tcf-v2-2-index-json"],"./ar/tcf/v2.2/index.json":[56909,"tcf-texts-ar-tcf-v2-2-index-json"],"./az-AZ/tcf/v2.2/index.json":[54683,"tcf-texts-az-AZ-tcf-v2-2-index-json"],"./be/tcf/v2.2/index.json":[89107,"tcf-texts-be-tcf-v2-2-index-json"],"./bg/tcf/v2.2/index.json":[83941,"tcf-texts-bg-tcf-v2-2-index-json"],"./bn-IN/tcf/v2.2/index.json":[77456,"tcf-texts-bn-IN-tcf-v2-2-index-json"],"./bs/tcf/v2.2/index.json":[63577,"tcf-texts-bs-tcf-v2-2-index-json"],"./ca/tcf/v2.2/index.json":[13524,"tcf-texts-ca-tcf-v2-2-index-json"],"./cs/tcf/v2.2/index.json":[18426,"tcf-texts-cs-tcf-v2-2-index-json"],"./cy/tcf/v2.2/index.json":[86588,"tcf-texts-cy-tcf-v2-2-index-json"],"./da/tcf/v2.2/index.json":[27865,"tcf-texts-da-tcf-v2-2-index-json"],"./de-AT/tcf/v2.2/index.json":[67513,"tcf-texts-de-AT-tcf-v2-2-index-json"],"./de-CH/tcf/v2.2/index.json":[3075,"tcf-texts-de-CH-tcf-v2-2-index-json"],"./de/tcf/v2.2/index.json":[86805,"tcf-texts-de-tcf-v2-2-index-json"],"./el/tcf/v2.2/index.json":[7179,"tcf-texts-el-tcf-v2-2-index-json"],"./en-CA/tcf/v2.2/index.json":[82186,"tcf-texts-en-CA-tcf-v2-2-index-json"],"./en-GB/tcf/v2.2/index.json":[59105,"tcf-texts-en-GB-tcf-v2-2-index-json"],"./en-NZ/tcf/v2.2/index.json":[78358,"tcf-texts-en-NZ-tcf-v2-2-index-json"],"./en/tcf/v2.2/index.json":[37565,"tcf-texts-en-tcf-v2-2-index-json"],"./es/tcf/v2.2/index.json":[33608,"tcf-texts-es-tcf-v2-2-index-json"],"./et/tcf/v2.2/index.json":[27427,"tcf-texts-et-tcf-v2-2-index-json"],"./eu/tcf/v2.2/index.json":[29770,"tcf-texts-eu-tcf-v2-2-index-json"],"./fi/tcf/v2.2/index.json":[88027,"tcf-texts-fi-tcf-v2-2-index-json"],"./fil/tcf/v2.2/index.json":[5257,"tcf-texts-fil-tcf-v2-2-index-json"],"./fr-BE/tcf/v2.2/index.json":[49594,"tcf-texts-fr-BE-tcf-v2-2-index-json"],"./fr-CA/tcf/v2.2/index.json":[17369,"tcf-texts-fr-CA-tcf-v2-2-index-json"],"./fr/tcf/v2.2/index.json":[28452,"tcf-texts-fr-tcf-v2-2-index-json"],"./gl/tcf/v2.2/index.json":[19685,"tcf-texts-gl-tcf-v2-2-index-json"],"./he/tcf/v2.2/index.json":[88441,"tcf-texts-he-tcf-v2-2-index-json"],"./hi-IN/tcf/v2.2/index.json":[57215,"tcf-texts-hi-IN-tcf-v2-2-index-json"],"./hr/tcf/v2.2/index.json":[17242,"tcf-texts-hr-tcf-v2-2-index-json"],"./hu/tcf/v2.2/index.json":[15529,"tcf-texts-hu-tcf-v2-2-index-json"],"./id/tcf/v2.2/index.json":[33239,"tcf-texts-id-tcf-v2-2-index-json"],"./it/tcf/v2.2/index.json":[94727,"tcf-texts-it-tcf-v2-2-index-json"],"./ja/tcf/v2.2/index.json":[4127,"tcf-texts-ja-tcf-v2-2-index-json"],"./ka/tcf/v2.2/index.json":[58204,"tcf-texts-ka-tcf-v2-2-index-json"],"./ko/tcf/v2.2/index.json":[96302,"tcf-texts-ko-tcf-v2-2-index-json"],"./lt/tcf/v2.2/index.json":[88460,"tcf-texts-lt-tcf-v2-2-index-json"],"./lv/tcf/v2.2/index.json":[68066,"tcf-texts-lv-tcf-v2-2-index-json"],"./mk-MK/tcf/v2.2/index.json":[69397,"tcf-texts-mk-MK-tcf-v2-2-index-json"],"./ms/tcf/v2.2/index.json":[29520,"tcf-texts-ms-tcf-v2-2-index-json"],"./mt/tcf/v2.2/index.json":[66219,"tcf-texts-mt-tcf-v2-2-index-json"],"./nl-BE/tcf/v2.2/index.json":[94620,"tcf-texts-nl-BE-tcf-v2-2-index-json"],"./nl/tcf/v2.2/index.json":[56782,"tcf-texts-nl-tcf-v2-2-index-json"],"./no/tcf/v2.2/index.json":[809,"tcf-texts-no-tcf-v2-2-index-json"],"./pl/tcf/v2.2/index.json":[11320,"tcf-texts-pl-tcf-v2-2-index-json"],"./pt-BR/tcf/v2.2/index.json":[98773,"tcf-texts-pt-BR-tcf-v2-2-index-json"],"./pt/tcf/v2.2/index.json":[76768,"tcf-texts-pt-tcf-v2-2-index-json"],"./ro/tcf/v2.2/index.json":[53677,"tcf-texts-ro-tcf-v2-2-index-json"],"./ru/tcf/v2.2/index.json":[36243,"tcf-texts-ru-tcf-v2-2-index-json"],"./sk/tcf/v2.2/index.json":[36178,"tcf-texts-sk-tcf-v2-2-index-json"],"./sl/tcf/v2.2/index.json":[35937,"tcf-texts-sl-tcf-v2-2-index-json"],"./sq/tcf/v2.2/index.json":[76404,"tcf-texts-sq-tcf-v2-2-index-json"],"./sr-Latn/tcf/v2.2/index.json":[99683,"tcf-texts-sr-Latn-tcf-v2-2-index-json"],"./sr/tcf/v2.2/index.json":[98691,"tcf-texts-sr-tcf-v2-2-index-json"],"./sv/tcf/v2.2/index.json":[3239,"tcf-texts-sv-tcf-v2-2-index-json"],"./sw/tcf/v2.2/index.json":[83486,"tcf-texts-sw-tcf-v2-2-index-json"],"./th/tcf/v2.2/index.json":[27760,"tcf-texts-th-tcf-v2-2-index-json"],"./tl/tcf/v2.2/index.json":[22556,"tcf-texts-tl-tcf-v2-2-index-json"],"./tr/tcf/v2.2/index.json":[85246,"tcf-texts-tr-tcf-v2-2-index-json"],"./uk/tcf/v2.2/index.json":[40704,"tcf-texts-uk-tcf-v2-2-index-json"],"./vi/tcf/v2.2/index.json":[68683,"tcf-texts-vi-tcf-v2-2-index-json"],"./zh-CN/tcf/v2.2/index.json":[5728,"tcf-texts-zh-CN-tcf-v2-2-index-json"],"./zh-TW/tcf/v2.2/index.json":[64752,"tcf-texts-zh-TW-tcf-v2-2-index-json"]};function s(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],s=t[0];return n.e(t[1]).then(function(){return n.t(s,19)})}s.keys=function(){return Object.keys(r)},s.id=56247,e.exports=s},56738:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=(e,t)=>0!==e.length&&0!==t.length&&e.every(e=>-1!==t.indexOf(e))},56834:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(29047),s={[r.T.Cookies]:1,[r.T.CookiesAnalytics]:1,[r.T.CookiesMarketing]:1,[r.T.CookiesSocial]:1,[r.T.SelectBasicAds]:2,[r.T.CreateAdsProfile]:3,[r.T.SelectPersonalizedAds]:4,[r.T.CreateContentProfile]:5,[r.T.SelectPersonalizedContent]:6,[r.T.MeasureAdPerformance]:7,[r.T.MeasureContentPerformance]:8,[r.T.MarketResearch]:9,[r.T.ImproveProducts]:10,[r.T.UseLimitedDataToSelectContent]:11}},57483:function(e,t,n){"use strict";n.d(t,{lB:function(){return v},dZ:function(){return h},M9:function(){return f}});var r=n(34576),s=n(26104),o=n(4609),i=n(52140),a=n(72985),u=n(418),l=n(20259),d=n(75155),c=n(11843),p=(0,r.EW)(()=>{var e,t,n=null==(e=c.r.value)?void 0:e.name;if(null!=(t=d.O.value)&&t.isDidomiConsentStringEncodingEnabled){if(n&&"gdpr"!==n&&"ccpa"!==n){var r,s,o=null==(r=c.r.value)||null==(s=r.cookies)?void 0:s.didomiTokenCookieName;return"string"==typeof o&&o.length>0?o:"didomi_token_"+n}var i,a,u=null==(i=l.bK.value)||null==(a=i.cookies)?void 0:a.didomiTokenCookieName;return"string"==typeof u&&u.length>0?u:"didomi_token"}}),v=(0,r.vP)({didomiToken:null,iabConsentString:null});(0,r.QZ)(()=>{var e;l.bK.value&&(v.value=(0,i._k)(a.x.value,s.O.value,null==(e=o.G.value)?void 0:e.sources,p.value))});var f=e=>{var t,n,r,l,d,c,p,f,{didomiToken:h,iabConsentString:g}=e;h&&(0,i.NT)(a.x.value,h,null==(t=o.G.value)?void 0:t.local.customDomain,null==(n=o.G.value)?void 0:n.sources,!1,null==(r=o.G.value)?void 0:r.sameSiteRequired,u.t.value.durationInDays,null==(l=o.G.value)?void 0:l.secure);g&&(0,i.NT)(s.O.value,g,null==(d=o.G.value)?void 0:d.local.customDomain,null==(c=o.G.value)?void 0:c.sources,!1,null==(p=o.G.value)?void 0:p.sameSiteRequired,u.t.value.durationInDays,null==(f=o.G.value)?void 0:f.secure);v.value={didomiToken:h||v.peek().didomiToken,iabConsentString:g||v.peek().iabConsentString}},h=()=>{var e;(0,i.MM)(s.O.value,null==(e=o.G.value)?void 0:e.local.customDomain),v.value={didomiToken:v.peek().didomiToken,iabConsentString:null}}},58134:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var r=(e,t,n,r,s)=>t&&n.includes(e)?s:r},58168:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var e,t;return!1!==(null==(e=s.v.value)||null==(t=e.vendorsLayer)?void 0:t.enabled)})},58623:function(e,t,n){"use strict";n.d(t,{x:function(){return u}});var r=n(58975),s=n(20259),o=n(34576),i=n(75240),a=n(83587),u=(0,o.EW)(()=>{var e,t=s.bK.value,n=void 0!==navigator.globalPrivacyControl,o=a.o.value&&n&&(void 0===i.q.value||!0===i.q.value.enabled),u=o&&!0===navigator.globalPrivacyControl;return{isEnabled:o,isSupportedByBrowser:n,isUserOptedOut:u,defaultUserStatus:{optin:u?r.kv.DISABLED:r.kv.ENABLED,optout:u?r.kv.DISABLED:r.kv.ENABLED,essential:r.kv.ENABLED},shouldShowNotice:o&&!1!==(null==t||null==(e=t.notice)?void 0:e.showWhenGPCIsEnabled)}})},58975:function(e,t,n){"use strict";n.d(t,{iS:function(){return l},kv:function(){return u},B:function(){return d}});var r=n(58623),s=n(34576),o=n(20259),i=(0,s.EW)(()=>{var e,t;return"2.0.0"===(null==(e=o.bK.value)||null==(t=e.ui)?void 0:t.version)}),a=n(83587),u={ENABLED:!0,DISABLED:!1,UNDEFINED:void 0},l={optin:u.DISABLED,optout:u.ENABLED,essential:u.ENABLED},d=(0,s.EW)(()=>{var e=!i.value,t=r.x.value.isUserOptedOut?r.x.value.defaultUserStatus:l;return a.o.value?{optin:{default:t.optin,initial:{purposes:{value:t.optin,includeOnlySPI:e},operators:{value:u.UNDEFINED}},collect:{purposes:!0,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!1}}}},optout:{default:t.optout,initial:{purposes:{value:t.optout},operators:{value:t.optout,includeAllProcessingRules:!0}},collect:{purposes:!0,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!0,as:["optin","optout"]}}}},essential:{default:t.essential,initial:{purposes:{value:u.ENABLED},operators:{value:u.ENABLED}},collect:{purposes:!1,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!1}}}}}:{optin:{default:t.optin,initial:{purposes:{value:u.UNDEFINED},operators:{values:u.UNDEFINED}},collect:{purposes:!0,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!0}}}},optout:{default:t.optout,initial:{purposes:{value:t.optout},operators:{value:u.UNDEFINED}},collect:{purposes:!0,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!0}}}},essential:{default:t.essential,initial:{purposes:{value:u.ENABLED},operators:{value:u.ENABLED}},collect:{purposes:!1,operators:{firstPartyOperators:{enable:!1},thirdPartyOperators:{enable:!1}}}}}})},59113:function(e,t,n){"use strict";n.d(t,{o:function(){return s}});var r=n(29047),s={1:r.T.Cookies,2:r.T.SelectBasicAds,3:r.T.CreateAdsProfile,4:r.T.SelectPersonalizedAds,5:r.T.CreateContentProfile,6:r.T.SelectPersonalizedContent,7:r.T.MeasureAdPerformance,8:r.T.MeasureContentPerformance,9:r.T.MarketResearch,10:r.T.ImproveProducts,11:r.T.UseLimitedDataToSelectContent}},61304:function(e,t,n){"use strict";n.d(t,{s:function(){return u}});var r=n(34576),s=n(20152),o=n(78939),i=n(86923),a=n(11843),u=(0,r.EW)(()=>{var e,t,n,r,u;return!(!0!==i.X.value||"gdpr"!==(null==(e=a.r.value)?void 0:e.name)||!(!0===(null==(t=o.b.value)?void 0:t.removeDeletedIABVendorsForAllClients)||null!=(n=o.b.value)&&null!=(r=n.removeDeletedIABVendorsForAPIKeys)&&r.includes(null==(u=s.U.value)?void 0:u.apiKey)))})},62026:function(e,t,n){"use strict";n.d(t,{o4:function(){return F}});var r,s="3.7.5",o=s,i="function"==typeof atob,a="function"==typeof btoa,u="function"==typeof Buffer,l="function"==typeof TextDecoder?new TextDecoder:void 0,d="function"==typeof TextEncoder?new TextEncoder:void 0,c=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),p=(r={},c.forEach((e,t)=>r[e]=t),r),v=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,f=String.fromCharCode.bind(String),h="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),g=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),m=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),b=e=>{for(var t,n,r,s,o="",i=e.length%3,a=0;a255||(r=e.charCodeAt(a++))>255||(s=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");o+=c[(t=n<<16|r<<8|s)>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}return i?o.slice(0,i-3)+"===".substring(i):o},y=a?e=>btoa(e):u?e=>Buffer.from(e,"binary").toString("base64"):b,_=u?e=>Buffer.from(e).toString("base64"):e=>{for(var t=[],n=0,r=e.length;n{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?f(192|t>>>6)+f(128|63&t):f(224|t>>>12&15)+f(128|t>>>6&63)+f(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return f(240|t>>>18&7)+f(128|t>>>12&63)+f(128|t>>>6&63)+f(128|63&t)},w=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,A=e=>e.replace(w,S),C=u?e=>Buffer.from(e,"utf8").toString("base64"):d?e=>_(d.encode(e)):e=>y(A(e)),P=function(e,t){return void 0===t&&(t=!1),t?g(C(e)):C(e)},k=e=>P(e,!0),E=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,O=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return f((t>>>10)+55296)+f(56320+(1023&t));case 3:return f((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return f((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},T=e=>e.replace(E,O),L=e=>{if(e=e.replace(/\s+/g,""),!v.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,s="",o=0;o>16&255):64===r?f(t>>16&255,t>>8&255):f(t>>16&255,t>>8&255,255&t);return s},x=i?e=>atob(m(e)):u?e=>Buffer.from(e,"base64").toString("binary"):L,R=u?e=>h(Buffer.from(e,"base64")):e=>h(x(e).split("").map(e=>e.charCodeAt(0))),U=e=>R(N(e)),D=u?e=>Buffer.from(e,"base64").toString("utf8"):l?e=>l.decode(R(e)):e=>T(x(e)),N=e=>m(e.replace(/[-_]/g,e=>"-"==e?"+":"/")),B=e=>D(N(e)),V=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),j=function(){var e=(e,t)=>Object.defineProperty(String.prototype,e,V(t));e("fromBase64",function(){return B(this)}),e("toBase64",function(e){return P(this,e)}),e("toBase64URI",function(){return P(this,!0)}),e("toBase64URL",function(){return P(this,!0)}),e("toUint8Array",function(){return U(this)})},M=function(){var e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,V(t));e("toBase64",function(e){return I(this,e)}),e("toBase64URI",function(){return I(this,!0)}),e("toBase64URL",function(){return I(this,!0)})},F={version:s,VERSION:o,atob:x,atobPolyfill:L,btoa:y,btoaPolyfill:b,fromBase64:B,toBase64:P,encode:P,encodeURI:k,encodeURL:k,utob:A,btou:T,decode:B,isValid:e=>{if("string"!=typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:I,toUint8Array:U,extendString:j,extendUint8Array:M,extendBuiltins:()=>{j(),M()}}},62846:function(e,t,n){"use strict";n.d(t,{a:function(){return s},k:function(){return r}});var r=!1,s=()=>{r=!0}},63364:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(34576),s=n(29690),o=(0,r.EW)(()=>{var e;return(null==(e=s.i.value)?void 0:e.map(e=>null==e?void 0:e.id))||[]})},65606:function(e){var t,n,r=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,u=[],l=!1,d=-1;function c(){l&&a&&(l=!1,a.length?u=a.concat(u):d=-1,u.length&&p())}function p(){if(!l){var e=i(c);l=!0;for(var t=u.length;t;){for(a=u,u=[];++d1)for(var n=1;n{if(!n||0===n.length)return[];var r=((e,t)=>e.flexiblePurposeIds.filter(n=>e[t].includes(n)))(e,"req-consent"===t?"legIntPurposeIds":"purposeIds");return r.filter(r=>{var s=(0,u.N)(r,e.id,"disallow",n),o=(0,u.N)(r,e.id,t,n);return!s&&o})},d=n(97071),c=n(50378),p=(0,s.EW)(()=>{var{vendors:e}=i.A.value||{};if(!e||!Array.isArray(e))return[];var t,n,s=o.t.map(e=>(e=>{if("iab"===e.namespace){var t=(0,c.Et)(e.id)?e.id:parseInt(e.id,10);if(t)return t}else if(e.namespaces){if((0,c.Et)(e.namespaces.iab))return e.namespaces.iab;if((0,c.Et)(e.namespaces.iab2))return e.namespaces.iab2}return null})(e)),p=e.filter(e=>!s.includes(e.id));return t=p,null!=(n=a.Z.value)&&n.length?t.reduce((e,t)=>{var s=(0,r.A)({},t,{purposeIds:t.purposeIds.filter(e=>!(0,u.N)(e,t.id,"req-li",n,!1)),legIntPurposeIds:t.legIntPurposeIds.filter(e=>!(0,u.N)(e,t.id,"req-consent",n,!1)),specialFeatureIds:t.specialFeatureIds.filter(e=>!(0,u.N)(e,t.id,"disallow",n,!0))});return s.purposeIds=(0,d.$)([...s.purposeIds,...l(t,"req-consent",n)]),s.legIntPurposeIds=(0,d.$)([...s.legIntPurposeIds,...l(t,"req-li",n)]),(e=>0===e.purposeIds.length&&0===e.legIntPurposeIds.length&&0===e.specialPurposeIds.length)(s)||e.push(s),e},[]):t}),v=n(9757),f={id:"google",name:"Google Advertising Products",policyUrl:"https://policies.google.com/privacy",namespace:"didomi"},h=n(55217),g=n(92920),m=n(20152),b=(e,t)=>{e&&t&&(t.purposeIds=e.purposeIds,t.legIntPurposeIds=e.legIntPurposeIds)},y=(0,s.EW)(()=>{var e,t,n,s=(null==(e=m.U.value)||null==(t=e.vendors)?void 0:t.overrideVendors)||[],i=Object.keys(s),a=[...o.t,...null==(n=p.value)?void 0:n.map(e=>(e=>{var t=[];return t.push(...(e.purposeIds||[]).map(e=>(0,v.KX)(e))),t.push(...(e.specialFeatureIds||[]).map(e=>(0,v.PL)(e))),(0,r.A)({},e,{namespace:"iab",purposeIds:t,legIntPurposeIds:(e.legIntPurposeIds||[]).map(e=>(0,v.KX)(e)),flexiblePurposeIds:(e.flexiblePurposeIds||[]).map(e=>(0,v.KX)(e))},e.id===v.le.google&&(0,r.A)({},f,{namespaces:{iab2:v.le.google}}))})(e)),...g.$.value],u={},l=a.find(e=>"google"===e.id);for(var d of a){if(d.policyUrl&&(d.policyUrl=(0,h.Bf)(d.policyUrl)),"custom"===d.namespace){var c,y;(0,v.cu)(d)&&b(l,d);var _,I=(null==d||null==(c=d.namespaces)?void 0:c.didomi)||(null==d||null==(y=d.namespaces)?void 0:y.iab2);if(!!u[I])u[I]=(0,r.A)({},u[I],{namespaces:(0,r.A)({},null==(_=u[I])?void 0:_.namespaces,null==d?void 0:d.namespaces)});else u[d.id]=d}else"didomi"===d.namespace?((0,v.cu)(d)&&b(l,d),u[d.id]=d):u[d.id]=d;i.includes(d.id)&&(u[d.id]=(0,r.A)({},u[d.id],s[d.id]))}return u})},66756:function(e,t,n){"use strict";n.d(t,{N:function(){return d}});var r={checkCMPId:!1,defaultCMPId:7,returnTCModel:!1,vendorsNotDisclosedSetUndefined:!1,includeSpecialFeatures:!0},s=n(23984),o=n(83960),i=n(76638),a=n(12880),u=n(76381),l=n(8035),d=function(e,t){var n;if(void 0===t&&(t=void 0),"object"!=typeof o._B||"object"!=typeof o.Hd||"object"!=typeof u.B)throw new Error("Didomi - IAB TCF not initialized");var d=((e,t)=>(0,s.l)((0,s.l)(e,t),r))(t,null==u.B?void 0:u.B.decoderOptions);if(!d)return null;var{checkCMPId:c,defaultCMPId:p,returnTCModel:v}=d,f=null!==(n=(e=>{var t,n,r,s,o,i;if((null===(n=null===(t=null==e?void 0:e.vendors)||void 0===t?void 0:t.iab)||void 0===n?void 0:n.cmpId)&&"number"==typeof(null===(s=null===(r=null==e?void 0:e.vendors)||void 0===r?void 0:r.iab)||void 0===s?void 0:s.cmpId))return null===(i=null===(o=null==e?void 0:e.vendors)||void 0===o?void 0:o.iab)||void 0===i?void 0:i.cmpId})(l.k))&&void 0!==n?n:p;try{var h=i.de.decode(e);return c&&h.cmpId!==f?null:v?h:(0,a.D)(h,d)}catch(e){return null}}},67092:function(e,t){"use strict";function n(e,t){return function(){for(var n=[],r=0;r(e[t]=!0,e),{});t.forEach(e=>{i[e]=!1});var a=n.reduce((e,t)=>(e[t]=!0,e),{});return r.forEach(e=>{a[e]=!1}),{purposesById:i,purposes:{enabled:o,disabled:t},vendorsById:a,vendors:{enabled:n,disabled:r}}},h=(0,r.EW)(()=>{var e,t,n,r,h,g,m,b,y=s.II.value,_=(null==y||null==(e=y.purposes)?void 0:e.enabled)||[],I=(null==y||null==(t=y.purposes)?void 0:t.disabled)||[],S=(null==y||null==(n=y.vendors)?void 0:n.enabled)||[],w=(null==y||null==(r=y.vendors)?void 0:r.disabled)||[],A=(null==y||null==(h=y.purposes_li)?void 0:h.enabled)||[],C=(null==y||null==(g=y.purposes_li)?void 0:g.disabled)||[],P=(null==y||null==(m=y.vendors_li)?void 0:m.enabled)||[],k=(null==y||null==(b=y.vendors_li)?void 0:b.disabled)||[],E=_.length>0||I.length>0||S.length>0||w.length>0||A.length>0||C.length>0||P.length>0||k.length>0,O=[...new Set([...u.H$.value.operatorIdsWithAtLeastOneOptinPurpose,...u.H$.value.operatorIdsWithAtLeastOneOptoutPurpose])],T=l.B.value.optin.initial.purposes.includeOnlySPI?i.t.value.spiPurposeIds:i.t.value.purposeIdsBasedOnConsent;if(E||(_=l.B.value.optin.initial.purposes.value===l.kv.ENABLED?T:[],I=l.B.value.optin.initial.purposes.value===l.kv.DISABLED?T:[],S=l.B.value.optin.initial.operators.value===l.kv.ENABLED?l.B.value.optin.initial.operators.includeAllProcessingRules?O:u.H$.value.operatorIdsWithAtLeastOneOptinPurpose:c.q.value.optInEssentialPurposesOperatorIds,w=l.B.value.optin.initial.operators.value===l.kv.DISABLED?l.B.value.optin.initial.operators.includeAllProcessingRules?O:u.H$.value.operatorIdsWithAtLeastOneOptinPurpose:[],A=l.B.value.optout.initial.purposes.value===l.kv.ENABLED?i.t.value.purposeIdsBasedOnLI:[],C=l.B.value.optout.initial.purposes.value===l.kv.DISABLED?i.t.value.purposeIdsBasedOnLI:[],P=l.B.value.optout.initial.operators.value===l.kv.ENABLED?l.B.value.optout.initial.operators.includeAllProcessingRules?O:u.H$.value.operatorIdsWithAtLeastOneOptoutPurpose:c.q.value.optOutEssentialPurposesOperatorIds,k=l.B.value.optout.initial.operators.value===l.kv.DISABLED?l.B.value.optout.initial.operators.includeAllProcessingRules?O:u.H$.value.operatorIdsWithAtLeastOneOptoutPurpose:[]),a.x.value.isUserOptedOut&&!E){var L,x=(0,v.$)(null==(L=p.q.value)?void 0:L.purposes,i.t.value.purposeIds,o.T.value);_=_.filter(e=>!x.includes(e)),I=[...new Set([...I,...i.t.value.purposeIdsBasedOnConsent.filter(e=>x.includes(e))])];var R=i.t.value.purposeIdsBasedOnLI.filter(e=>x.includes(e));A=i.t.value.purposeIdsBasedOnLI.filter(e=>!x.includes(e)),C=R,S=[],w=[...new Set([...u.H$.value.operatorIdsByCollectionMethod.optin,...u.H$.value.operatorIdsWithAtLeastOneOptinPurpose])],P=[],k=[...new Set([...u.H$.value.operatorIdsByCollectionMethod.optout,...u.H$.value.operatorIdsWithAtLeastOneOptoutPurpose])]}return d.p.value&&(_=i.t.value.purposeIdsBasedOnConsent,I=[],A=i.t.value.purposeIdsBasedOnLI,C=[],S=u.H$.value.operatorIdsWithAtLeastOneOptinPurpose,w=[],P=u.H$.value.operatorIdsWithAtLeastOneOptoutPurpose,k=[]),{byLegalBasis:{consent:f(_,I,S,w,o.T.value),li:f(A,C,P,k,o.T.value)},hasMadeAnyChoice:E}})},67582:function(e,t,n){"use strict";n.d(t,{l:function(){return i},u:function(){return o}});var r=n(50378),s=n(25159),o=e=>(0,r.Kg)(e)&&""!==e.trim(),i=e=>(0,r.Et)(e)&&s.a.didomiConsentStringSchemaMinorVersion<=e&&e<=s.a.didomiConsentStringSchemaMajorVersion},67885:function(e,t,n){"use strict";var r,s;n.d(t,{Cb:function(){return o}}),function(e){e.WindowDidomiConfig="window-didomi-config",e.WindowDidomiConfigVendors="window-didomi-config-custom-vendors",e.WindowDidomiConfigCustomPurposes="window-didomi-config-custom-purposes",e.WindowDidomiConfigEssentialPurposes="window-didomi-config-essential-purposes",e.WindowDidomiConfigDisabledPurposes="window-didomi-config-disabled-purposes",e.WindowDidomiConfigIAB="window-didomi-config-iab",e.WindowDidomiConfigIABRestrictions="window-didomi-config-iab-restrictions",e.SpConsentMigrationRun="sp-consent-migration-run",e.CustomSdkLoadTimeout="error-custom-sdk-load-timeout",e.TagManagerLoadError="error-tag-manager-load",e.IntegrationLoadError="error-integration-load",e.IabVendorTextsLoadError="error-iab-vendor-texts-load",e.WidgetLoadError="error-widget-load",e.WidgetMountError="error-widget-mount",e.SpConsentMigrationError="sp-consent-migration-error"}(r||(r={})),function(e){e.Performance="performance",e.Usage="usage",e.Error="error"}(s||(s={}));var o={WINDOW_DIDOMI_CONFIG:r.WindowDidomiConfig,WINDOW_DIDOMI_CONFIG_CUSTOM_VENDORS:r.WindowDidomiConfigVendors,WINDOW_DIDOMI_CONFIG_CUSTOM_PURPOSES:r.WindowDidomiConfigCustomPurposes,WINDOW_DIDOMI_CONFIG_ESSENTIAL_PURPOSES:r.WindowDidomiConfigEssentialPurposes,WINDOW_DIDOMI_CONFIG_DISABLED_PURPOSES:r.WindowDidomiConfigDisabledPurposes,WINDOW_DIDOMI_CONFIG_IAB:r.WindowDidomiConfigIAB,WINDOW_DIDOMI_CONFIG_IAB_RESTRICTIONS:r.WindowDidomiConfigIABRestrictions,SP_CONSENT_MIGRATION_RUN:r.SpConsentMigrationRun,ERROR_CUSTOM_SDK_LOAD_TIMEOUT:r.CustomSdkLoadTimeout,ERROR_TAG_MANAGER_LOAD:r.TagManagerLoadError,ERROR_INTEGRATION_LOAD:r.IntegrationLoadError,ERROR_IAB_VENDOR_TEXTS_LOAD:r.IabVendorTextsLoadError,ERROR_WIDGET_LOAD:r.WidgetLoadError,ERROR_WIDGET_MOUNT:r.WidgetMountError,SP_ERROR_CONSENT_MIGRATION:r.SpConsentMigrationError};s.Usage,s.Performance,s.Error},68200:function(e,t,n){"use strict";n.d(t,{II:function(){return o},vY:function(){return i},wJ:function(){return a}});var r=n(34576),s=n(3330),o=(0,r.vP)((0,s.x)()),i=e=>{o.value=e},a=()=>{var e;null!=(e=o.value)&&e.sync&&delete o.value.sync}},68307:function(e,t,n){"use strict";n.d(t,{Ic:function(){return f},KU:function(){return h},sF:function(){return g},mW:function(){return p},ew:function(){return v},on:function(){return b},Oo:function(){return _},pQ:function(){return y},kj:function(){return c}});var r=n(91083),s=n(24408),o=n(23369),i=n(74921),a=["cbd8eb33-3b64-4820-b682-a4ee95350e35","d8b5cd5c-d1e5-4195-b9b2-02ab9bb451fa","b7a34065-46df-44a9-be3b-1f92ad51caa8","13530e32-2047-45b8-96c9-eeff22c3a3be","ad7a65df-088b-4b23-86be-3bd683070a38","aac9f485-1439-4164-8cd7-e42a1e204304","fb809c51-e9cd-4e35-a92d-e44bb858841e","309930c2-c7f2-4e68-817b-04568d81e6ab","7893a59d-1e25-44f3-97b7-0772c2ab6a25","839e15c5-b3dc-4adf-9a82-6d97c8ca004d"],u=["consent.changed","consent.changedwithsignature","internal.consent.changed","cookies.enable","notice.hidden"],l=(0,r.EventEmitter)().setMaxListeners(50),d=new Map,c=e=>{l.setMaxListeners(e)},p=()=>l.maxListeners,v=e=>l.listenerCount(e),f=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{(e=>!e||e>=400)(e)&&f("api.error",{id:t,reason:"number"==typeof e&&e>=400?"response.error":"request.failure"})},g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{f(e,...n)})},m=(e,t)=>function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;lt(n,...o),!0):t(n,...o)},b=function(e,t,n){var{shouldYield:r=!0,shouldBeSafe:s=!0}=void 0===n?{}:n,i=t;s&&(i=(0,o.B1)(i,e)),r&&(i=m(e,i)),d.set(t,i),l.on(e,i)},y=(e,t)=>{var n=d.get(t)||t;l.removeListener(e,n),d.delete(t)},_=function(e,t,n){var{shouldYield:r=!0,shouldBeSafe:s=!0}=void 0===n?{}:n,i=t;s&&(i=(0,o.B1)(i,e)),r&&(i=m(e,i)),d.set(t,i),l.once(e,i)}},68659:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var r=n(94988);function s(e,t,n){var r=new Set(t.map(function(e){return String(e)})),s=new Set(n.map(function(e){return String(e)}));return e.reduce(function(e,t){if(void 0===e)return e;var n=String(t),o=r.has(n),i=s.has(n);return o&&!i?!(null!==e&&!e)||void 0:!o&&i?!(null===e||!e)&&void 0:void 0},null)}function o(e,t){var n=t.state,o=t.transformers,i=void 0===o?{default:function(e){return e}}:o;if(e&&"object"==typeof e&&e.type){var a;switch(e.type){case r.LW.CONSTANT_VALUE:a=function(e){return t=e.value,"boolean"==typeof t||null==t?t:void 0;var t}(e);break;case r.LW.VENDORS:a=function(e,t){var n,o,i,a,u=e.ids,l=e.processingRule;if(Array.isArray(u))return 0===u.length?null:(null==t?void 0:t.token)&&l?s(u,l===r.KI.OPTIN?(null===(n=t.token.vendors)||void 0===n?void 0:n.enabled)||[]:(null===(o=t.token.vendors_li)||void 0===o?void 0:o.enabled)||[],l===r.KI.OPTIN?(null===(i=t.token.vendors)||void 0===i?void 0:i.disabled)||[]:(null===(a=t.token.vendors_li)||void 0===a?void 0:a.disabled)||[]):u.every(function(e){var n,r,s;return null===(s=null===(r=null===(n=null==t?void 0:t.userStatus)||void 0===n?void 0:n.vendors)||void 0===r?void 0:r[e])||void 0===s?void 0:s.enabled})}(e,n);break;case r.LW.PURPOSES:a=function(e,t){var n,o,i,a,u=e.ids,l=e.processingRule;if(Array.isArray(u))return 0===u.length?null:(null==t?void 0:t.token)&&l?s(u,l===r.KI.OPTIN?(null===(n=t.token.purposes)||void 0===n?void 0:n.enabled)||[]:(null===(o=t.token.purposes_li)||void 0===o?void 0:o.enabled)||[],l===r.KI.OPTIN?(null===(i=t.token.purposes)||void 0===i?void 0:i.disabled)||[]:(null===(a=t.token.purposes_li)||void 0===a?void 0:a.disabled)||[]):u.every(function(e){var n,r,s;return null===(s=null===(r=null===(n=null==t?void 0:t.userStatus)||void 0===n?void 0:n.purposes)||void 0===r?void 0:r[e])||void 0===s?void 0:s.enabled})}(e,n);break;case r.LW.GPC:a=function(e){var t;return null===(t=null==e?void 0:e.userStatus)||void 0===t?void 0:t.gpc}(n)}var u=i.default||function(e){return e};return e.transformer&&(u=i[e.transformer]||u),void 0!==e.default&&null==a?u(e.default):u(a)}}function i(e,t){return Array.isArray(e)?e.map(function(e){return o(e,t)}):e&&"object"==typeof e&&e.type?o(e,t):e&&"object"==typeof e?Object.keys(e).reduce(function(n,r){return Array.isArray(t.pick)&&!t.pick.includes(r)||(n[r]=i(e[r],t)),n},{}):void 0}},70008:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(20152),s=n(34576),o=n(50378),i=n(9757),a=n(25159),u=["all","list"],l=["allow","disallow","req-consent","req-li"],d=(0,o.zu)(i.H2),c=e=>{if(!e)return!1;var{id:t,purposeId:n,vendors:r,restrictionType:s}=e;return(e=>{var{restrictionId:t,vendorRestrictionType:n,vendorRestrictionRanges:r,restrictionType:s,restrictionPurposeId:o,vendorIds:c}=e,p=d.includes(o),v=p?i.x4[o]:i.LN[o];if("string"!=typeof t||0===t.length)return console.error(a.a.didomiPrefix+'Invalid restriction ID "'+t+'" provided for publisher restrictions'),!1;if(void 0===v)return console.error(a.a.didomiPrefix+'Invalid purpose ID or special feature ID "'+o+'" provided for publisher restrictions'),!1;if(p){if("all"!==n)return console.error(a.a.didomiPrefix+"Only vendor restriction type 'all' is valid for special features"),!1;if("disallow"!==s)return console.error(a.a.didomiPrefix+"Only restriction type 'disallow' is valid for special features"),!1}else{if(void 0===n||-1===u.indexOf(n))return console.error(a.a.didomiPrefix+'Invalid vendor restriction type "'+n+'" provided for publisher restrictions'),!1;if("list"===n)if(Array.isArray(c)&&0!==c.length){if(!c.every(e=>"number"==typeof e))return console.error(a.a.didomiPrefix+"Vendor IDs for publisher restrictions should be numerical values"),!1}else{if(!Array.isArray(r)||0===r.length)return console.error(a.a.didomiPrefix+"Invalid vendor restriction ranges provided for publisher restrictions"),!1;if(r.map(e=>{var t=Object.keys(e);return"object"==typeof e&&-1!==t.indexOf("start")&&-1!==t.indexOf("end")&&e.start!0===e).length!==r.length)return console.error(a.a.didomiPrefix+"Invalid vendor restriction ranges provided for publisher restrictions. Each vendor restriction must contain 'start' and 'end' key"),!1}if("string"!=typeof s||-1===l.indexOf(s))return console.error(a.a.didomiPrefix+'Invalid restriction type "'+s+'" provided for publisher restrictions'),!1;if("cookies"===o&&("req-consent"===s||"req-li"===s))return console.error(a.a.didomiPrefix+"Only restriction types 'allow' or 'disallow' are valid for the purpose 'cookies'"),!1}return!0})({restrictionId:t,vendorRestrictionType:null==r?void 0:r.type,vendorRestrictionRanges:null==r?void 0:r.ranges,restrictionType:s,restrictionPurposeId:n,vendorIds:null==r?void 0:r.ids})},p=(e,t,n,r,s)=>{if("all"===t)return"allow"===e?[]:s;var o="allow"===e,i=new Set;return n&&(o?s.forEach(e=>{n.includes(e)||i.add(e)}):n.forEach(e=>{i.add(e)})),r&&r.forEach(e=>{var{start:t,end:n}=e;if(o)s.forEach(e=>{(en)&&i.add(e)});else for(var r=t;r<=n;r++)i.add(r)}),[...i]},v=n(81062),f=(0,s.EW)(()=>{var e,t,n,s=null==(e=r.U.value)||null==(t=e.vendors)||null==(n=t.iab)?void 0:n.restrictions;return Array.isArray(s)?s.filter(c).map(e=>{var t,n;return((e,t)=>{var{id:n,purposeId:r,vendors:s,restrictionType:o}=e,i=null==s?void 0:s.type,a=null==s?void 0:s.ranges,u=null==s?void 0:s.ids;return{id:n,purposeId:r,vendors:p(o,i,u,a,t),restrictionType:o,vendorRestrictionType:i}})(e,null==(t=v.A.value)||null==(n=t.vendors)?void 0:n.map(e=>{var{id:t}=e;return t}))}):[]})},70460:function(e,t,n){var r={"./ar-JO/web/":[18145,"ui-web-ar-JO-web"],"./ar/web/":[68849,"ui-web-ar-web"],"./az-AZ/web/":[57265,"ui-web-az-AZ-web"],"./be/web/":[37807,"ui-web-be-web"],"./bg/web/":[14769,"ui-web-bg-web"],"./bn-IN/web/":[31088,"ui-web-bn-IN-web"],"./bs/web/":[29589,"ui-web-bs-web"],"./ca/web/":[87058,"ui-web-ca-web"],"./cs/web/":[75896,"ui-web-cs-web"],"./cy/web/":[11258,"ui-web-cy-web"],"./da/web/":[8033,"ui-web-da-web"],"./de-AT/web/":[18639,"ui-web-de-AT-web"],"./de-CH/web/":[8641,"ui-web-de-CH-web"],"./de/web/":[35669,"ui-web-de-web"],"./el/web/":[71271,"ui-web-el-web"],"./en-CA/web/":[5706,"ui-web-en-CA-web"],"./en-GB/web/":[44159,"ui-web-en-GB-web"],"./en-NZ/web/":[47054,"ui-web-en-NZ-web"],"./en/web/":[32745,"ui-web-en-web"],"./es/web/":[99954,"ui-web-es-web"],"./et/web/":[99135,"ui-web-et-web"],"./eu/web/":[27268,"ui-web-eu-web"],"./fi/web/":[10079,"ui-web-fi-web"],"./fil/web/":[28567,"ui-web-fil-web"],"./fr-BE/web/":[48882,"ui-web-fr-BE-web"],"./fr-CA/web/":[80495,"ui-web-fr-CA-web"],"./fr/web/":[91990,"ui-web-fr-web"],"./gl/web/":[43557,"ui-web-gl-web"],"./he/web/":[65729,"ui-web-he-web"],"./hi-IN/web/":[40041,"ui-web-hi-IN-web"],"./hr/web/":[71448,"ui-web-hr-web"],"./hu/web/":[90065,"ui-web-hu-web"],"./id/web/":[2587,"ui-web-id-web"],"./it/web/":[235,"ui-web-it-web"],"./ja/web/":[11179,"ui-web-ja-web"],"./ka/web/":[6362,"ui-web-ka-web"],"./ko/web/":[66324,"ui-web-ko-web"],"./lt/web/":[64266,"ui-web-lt-web"],"./lv/web/":[84480,"ui-web-lv-web"],"./mk-MK/web/":[96247,"ui-web-mk-MK-web"],"./ms/web/":[12442,"ui-web-ms-web"],"./mt/web/":[3431,"ui-web-mt-web"],"./nl-BE/web/":[89300,"ui-web-nl-BE-web"],"./nl/web/":[59968,"ui-web-nl-web"],"./no/web/":[15021,"ui-web-no-web"],"./pl/web/":[41278,"ui-web-pl-web"],"./pt-BR/web/":[56159,"ui-web-pt-BR-web"],"./pt/web/":[2246,"ui-web-pt-web"],"./ro/web/":[95385,"ui-web-ro-web"],"./ru/web/":[93711,"ui-web-ru-web"],"./sk/web/":[15216,"ui-web-sk-web"],"./sl/web/":[20969,"ui-web-sl-web"],"./sq/web/":[45650,"ui-web-sq-web"],"./sr-Latn/web/":[66009,"ui-web-sr-Latn-web"],"./sr/web/":[61363,"ui-web-sr-web"],"./sv/web/":[25983,"ui-web-sv-web"],"./sw/web/":[8772,"ui-web-sw-web"],"./th/web/":[25462,"ui-web-th-web"],"./tl/web/":[47578,"ui-web-tl-web"],"./tr/web/":[87556,"ui-web-tr-web"],"./uk/web/":[23562,"ui-web-uk-web"],"./vi/web/":[86959,"ui-web-vi-web"],"./zh-CN/web/":[18120,"ui-web-zh-CN-web"],"./zh-TW/web/":[12636,"ui-web-zh-TW-web"]};function s(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],s=t[0];return n.e(t[1]).then(function(){return n(s)})}s.keys=function(){return Object.keys(r)},s.id=70460,e.exports=s},70949:function(e,t,n){"use strict";n.d(t,{S:function(){return s}});var r=n(58266),s={1:r.T.GeolocationData,2:r.T.DeviceCharacteristics}},71007:function(e,t,n){"use strict";n.d(t,{k0:function(){return v},Ej:function(){return p},Mf:function(){return d}});var r={configSpecificationVersion:1,environment:"prod",configVersion:3,lastUpdated:"2026-08-05T00:00:00Z",event:"metrics",samplingRate:1e-5,metrics:[{type:"usage",metric:"window-didomi-config",enabled:!0},{type:"usage",metric:"window-didomi-config-custom-vendors",enabled:!0},{type:"usage",metric:"window-didomi-config-custom-purposes",enabled:!0},{type:"usage",metric:"window-didomi-config-essential-purposes",enabled:!0},{type:"usage",metric:"window-didomi-config-disabled-purposes",enabled:!0},{type:"usage",metric:"window-didomi-config-iab",enabled:!0},{type:"usage",metric:"window-didomi-config-iab-restrictions",enabled:!0},{type:"usage",metric:"sp-consent-migration-run",enabled:!0},{type:"error",metric:"error-custom-sdk-load-timeout",enabled:!0,samplingRate:.01},{type:"error",metric:"error-tag-manager-load",enabled:!0,samplingRate:.01},{type:"error",metric:"error-integration-load",enabled:!0,samplingRate:.01},{type:"error",metric:"error-iab-vendor-texts-load",enabled:!0,samplingRate:.01},{type:"error",metric:"sp-consent-migration-error",enabled:!0,samplingRate:.01},{type:"error",metric:"error-widget-mount",enabled:!0,samplingRate:.01},{type:"error",metric:"error-widget-load",enabled:!0,samplingRate:.01}]},s=()=>{var{didomiMetricsConfig:e}=window;return e&&"object"==typeof e?e:r},o=[],i=[],a=null,u=(e,t)=>{if(a&&e.length){var n=s(),r=((e,t)=>{var n=new Map(e.metrics.map(t=>{var n;return[t.metric,null!=(n=t.samplingRate)?n:e.samplingRate]})),r=new Map;for(var s of t){var o=n.get(s.metric);if(!o)throw new Error("Sampling rate not found for metric "+s.metric);r.has(o)||r.set(o,[]),r.get(o).push(s)}return r})(n,e);for(var[o,i]of r)a(n.event,{metrics:i},o,t,void 0,5)}},l=()=>{if("hidden"===document.visibilityState){var e=o;o=[],u(e,!0)}},d=e=>{a=e,document.addEventListener("visibilitychange",l)},c=e=>{var{type:t,metric:n,value:r,metadata:a}=e;try{if(((e,t,n)=>{var r=!("error"===t)&&o.find(t=>t.type===e.type&&t.metric===e.metric),s="usage"===t&&n<=0;return e.enabled&&!r&&!s})(((e,t,n)=>{var r=null==e?void 0:e.metrics.find(e=>e.type===t&&e.metric===n);if(!r)throw new Error("Metric config not found for type: "+t+" and metric: "+n);return r})(s(),t,n),t,r)){var u={type:t,metric:n,value:r,metadata:a};"error"===t?i.push(u):o.push(u)}}catch(e){console.error("Error adding metric: ",e)}},p=e=>{for(var t of e)c({type:"usage",metric:t,value:1})},v=(e,t)=>{try{c({type:"error",metric:e,value:1,metadata:t}),(()=>{var e=i;i=[],u(e,!1)})()}catch(e){console.error("Error sending error metric: ",e)}}},71859:function(e,t,n){"use strict";n.d(t,{H:function(){return u}});var r=n(34576),s=n(47488),o=n(72013),i=n(6024),a=n(39838),u=(0,r.EW)(()=>{var e,t=navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage,n=(0,i.cO)(t);return null!=(e=s.h.value)&&e.includes(n)?n:o.e.value});(0,r.QZ)(()=>{var e=document.getElementById("didomi-host");e&&(e.getAttribute("lang")!==u.value&&(e.setAttribute("lang",u.value),e.setAttribute("data-lang-dir",(0,a.i)(u.value))))})},72013:function(e,t,n){"use strict";n.d(t,{e:function(){return u}});var r=n(34576),s=n(47488),o=n(6024),i=n(20259),a=n(25159),u=(0,r.EW)(()=>{var e,t,n,r=null==(e=i.bK.value)?void 0:e.languages;if(null!=r&&r.default){var u;if(null!=(u=s.h.value)&&u.includes(r.default))return r.default;var l=(0,o.yS)(r.default);if(l)return l;console.error(a.a.didomiPrefix+"Default language '"+r.default+"' must be in the list of enabled languages")}return null==(t=s.h.value)||!t.length||null!=(n=s.h.value)&&n.includes(o.Nm)?o.Nm:s.h.value[0]})},72177:function(e,t,n){"use strict";n.d(t,{A:function(){return i},R:function(){return a}});var r=n(34576),s=n(25159),o={add_payment_info:!0,add_shipping_info:!0,add_to_cart:!0,add_to_wishlist:!0,begin_checkout:!0,conversion:!0,close_convert_lead:!0,close_unconvert_lead:!0,disqualify_lead:!0,earn_virtual_currency:!0,generate_lead:!0,join_group:!0,level_end:!0,level_start:!0,level_up:!0,login:!0,post_score:!0,purchase:!0,qualify_lead:!0,refund:!0,remove_from_cart:!0,search:!0,select_content:!0,select_item:!0,select_promotion:!0,share:!0,sign_up:!0,spend_virtual_currency:!0,tutorial_begin:!0,tutorial_complete:!0,unlock_achievement:!0,view_cart:!0,view_item:!0,view_item_list:!0,view_promotion:!0,working_lead:!0},i=(0,r.vP)(void 0),a=(e,t)=>{try{i.value=((e,t)=>{if(e&&Array.isArray(e)&&e.length){var n=e.filter(e=>e&&e[1]!==t);if(n.some(e=>e&&"gtm.load"===e.event))return console.error(s.a.didomiPrefix+"Google Consent Mode: gtm.load event is already present in the data layer when setting default values. Ensure GTM and other Google tags are loaded after Didomi is ready for the Google Consent Mode integration to work correctly."),"load";var r=n.filter(e=>e&&(o[e.event]||o[e[1]])).map(e=>e&&(e.event||e[1]));if(r.length>0)return console.error(s.a.didomiPrefix+"Google Consent Mode: Google Ads or Google Analytics events ("+r.join(", ")+") are already present in the data layer before setting default values. Ensure GTM and other Google tags are loaded after Didomi is ready for the Google Consent Mode integration to work correctly."),"gtag_events"}})(e,t)}catch(e){}}},72198:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(9757),s=Object.keys(r.gS),o=[{id:"*",name:"Any",purposeIds:["cookies"],legIntPurposeIds:[],didomiId:"*"},{id:"amazon",name:"Amazon",purposeIds:s,legIntPurposeIds:[],policyUrl:"https://aps.amazon.com/aps/privacy-policy/index.html",namespace:"didomi",didomiId:"amazon"},{id:"facebook",name:"Facebook",purposeIds:[r.eL.Cookies,r.eL.CreateAdsProfile,r.eL.SelectPersonalizedAds],legIntPurposeIds:[r.eL.SelectBasicAds,r.eL.MeasureAdPerformance,r.eL.MarketResearch,r.eL.ImproveProducts],policyUrl:"https://www.facebook.com/about/privacy/update",namespace:"didomi",namespaces:{google:{current:!0,id:89}},didomiId:"facebook"},{id:"twitter",name:"Twitter",purposeIds:["cookies"],legIntPurposeIds:[],policyUrl:"https://twitter.com/privacy",namespace:"didomi",didomiId:"twitter"},{id:"whatsapp",name:"Whatsapp",purposeIds:["cookies"],legIntPurposeIds:[],policyUrl:"https://www.whatsapp.com/legal/#privacy-policy",namespace:"didomi",didomiId:"whatsapp"},{id:"google-adsense",name:"Google Adsense",purposeIds:s,legIntPurposeIds:[],policyUrl:"https://policies.google.com/technologies/partner-sites",namespace:"didomi",didomiId:"google-adsense"},{id:"google-adx",name:"Google Adx",purposeIds:s,legIntPurposeIds:[],policyUrl:"https://policies.google.com/technologies/partner-sites",namespace:"didomi",didomiId:"google-adx"},{id:"google-dfp",name:"Google DFP",purposeIds:s,legIntPurposeIds:[],policyUrl:"https://policies.google.com/technologies/partner-sites",namespace:"didomi",didomiId:"google-dfp"},{id:"addthis",name:"AddThis",purposeIds:s,legIntPurposeIds:[],policyUrl:"http://www.addthis.com/privacy",namespace:"didomi",didomiId:"addthis"},{id:"salesforce",name:"Salesforce",purposeIds:s,legIntPurposeIds:[],policyUrl:"https://www.salesforce.com/company/privacy/",namespace:"didomi",didomiId:"salesforce"}]},72527:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(58168),s=n(19621);class o{constructor(){this.utag=new s.Wrapper("utag")}update(e){var{type:t="didomi-consent-changed",customVariables:n}=e;this.utag.call("link",(0,r.A)({tealium_event:t},n))}}},72714:function(e,t,n){"use strict";n.d(t,{K:function(){return s},z:function(){return r}});var r=(0,n(34576).vP)(""),s=e=>{r.value=e}},72985:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(75155),s=n(20259),o=n(11843),i=(0,n(34576).EW)(()=>{var e,t,n=null==(e=o.r.value)?void 0:e.name;if(null!=(t=r.O.value)&&t.isDidomiConsentStringEncodingEnabled){var i,a,u=null==(i=s.bK.value)||null==(a=i.cookies)?void 0:a.didomiConsentStringCookieName;return"string"==typeof u&&u.length>0?u:"didomi_dcs"}if(n&&"gdpr"!==n&&"ccpa"!==n){var l,d,c=null==(l=o.r.value)||null==(d=l.cookies)?void 0:d.didomiTokenCookieName;return"string"==typeof c&&c.length>0?c:"didomi_token_"+n}var p,v,f=null==(p=s.bK.value)||null==(v=p.cookies)?void 0:v.didomiTokenCookieName;return"string"==typeof f&&f.length>0?f:"didomi_token"})},73307:function(e,t,n){"use strict";n.r(t),n.d(t,{loadProviderModule:function(){return i}});var r=n(71007),s=n(67885),o=n(25159),i=(e,t)=>n(48082)("./"+e+"/"+e+".js").then(n=>{var i=new n.default(t);return n&&"function"==typeof i.setConsentStatus?i:(console.error(o.a.didomiPrefix+"Module for provider "+e+" does not have a setConsentStatus function."),(0,r.k0)(s.Cb.ERROR_INTEGRATION_LOAD,{provider:e,reason:"Module for provider "+e+" does not have a setConsentStatus function."}),null)}).catch(t=>(console.error(o.a.didomiPrefix+"Failed to load integration for provider "+e+":",t),(0,r.k0)(s.Cb.ERROR_INTEGRATION_LOAD,{provider:e,reason:String(t)}),null))},73412:function(e,t,n){"use strict";n.d(t,{m:function(){return p}});var r=n(58168),s=n(34576),o=n(9757),i=n(78691),a=n(35787),u=n(84426),l=n(81062),d=(0,s.EW)(()=>{var e,{specialFeatures:t}=l.A.value||{};return!!t&&Array.isArray(t)&&!(null==(e=u.S.value)||!e.specialFeatures)?null==t?void 0:t.map(e=>{var t,n;return(0,r.A)({},null==(t=u.S.value)||null==(n=t.specialFeatures)?void 0:n.find(t=>t.id===e.id),{id:o.FG[e.id],namespace:"iab",isSpecialFeature:!0})}):[]}),c=[{id:o.eL.CookiesAnalytics},{id:o.eL.CookiesMarketing},{id:o.eL.CookiesSocial}],p=(0,s.EW)(()=>{var e=[...c,...a.T.value||[],...d.value||[],...i.x.value||[]];if(null==e||!e.length)return{};var t={};for(var n of e)if("custom"===n.namespace){var s,u,l=o.RQ[null==n||null==(s=n.namespaces)?void 0:s.iab2];if(!!t[l])t[l]=(0,r.A)({},t[l],{namespaces:(0,r.A)({},null==(u=t[l])?void 0:u.namespaces,null==n?void 0:n.namespaces)});else t[n.id]=n}else t[n.id]=n;return t})},73996:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(34576),s=n(76406),o=n(77396),i=(0,r.EW)(()=>({optInEssentialPurposesOperatorIds:s.H.value.operators.filter(e=>{var t;return e.processingRules.some(e=>"essential"===e)&&(null==(t=e.purposeIds)?void 0:t.length)>0&&e.purposeIds.every(e=>o.T.value.includes(String(e)))}).map(e=>e.id),optOutEssentialPurposesOperatorIds:s.H.value.operators.filter(e=>{var t;return e.processingRules.some(e=>"essential"===e)&&(null==(t=e.legIntPurposeIds)?void 0:t.length)>0&&e.legIntPurposeIds.every(e=>o.T.value.includes(String(e)))}).map(e=>e.id)}))},74283:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var r=e=>{var t=e.match(/^(iab|didomi):(\w+)$/);return t?t[2]:e}},74498:function(e,t,n){"use strict";n.d(t,{w:function(){return l}});var r=n(34956),s=n(77396),o=n(56738),i=n(98074),a=n(96831),u=n(58975),l=()=>{var e=[],t=[],n=[],l={},d=s.T.value,c=i.B.value;for(var p of r.h.value)if(p&&p.purposeIds&&0!==p.purposeIds.length&&((0,o.Z)(p.purposeIds,d)?(e.push(p.id),(0,a.w)(l,p.didomiId,!0)):(0,o.Z)(p.purposeIds,c)||(t.push(p.id),(0,a.w)(l,p.didomiId,!1))),p&&p.legIntPurposeIds&&0!==p.legIntPurposeIds.length&&!(0,o.Z)(p.legIntPurposeIds,c)){var v=(0,o.Z)(p.legIntPurposeIds,d)||u.B.value.optout.default;v&&n.push(p.id),(0,a.w)(l,p.didomiId,v)}return{vendors:{enabled:e,disabled:t},vendors_li:{enabled:n,disabled:[]},globalUserStatus:l}}},74921:function(e,t,n){"use strict";n.d(t,{F:function(){return r}});var r=function(e,t){if(void 0===t&&(t=!1),t){if("undefined"!=typeof window&&"scheduler"in window){if("yield"in window.scheduler)return void window.scheduler.yield().then(e);if("postTask"in window.scheduler)return void window.scheduler.postTask(e,{priority:"user-blocking"})}setTimeout(e,0)}else e()}},75155:function(e,t,n){"use strict";n.d(t,{O:function(){return l}});var r=n(58168),s=n(34576),o=n(20152),i=n(67582),a=n(24163),u=n(25159),l=(0,s.EW)(()=>{var e,t,n,s,a,l,d,c,p,v,f,h,g,m,b,y,_,I,S,w,A,C,P,k,E,O,T,L,x,R,U,D,N,B,V,j,M,F,z,W,G,H,K,J,q,Z=null==(e=o.U.value)?void 0:e.consentString,$=null==Z?void 0:Z.version,Y=void 0;Array.isArray(null==Z||null==(t=Z.encoder)||null==(n=t.schemaOverrides)||null==(s=n.fields)||null==(a=s.purposes_optin)?void 0:a.variants)&&(null==Z||null==(l=Z.encoder)||null==(d=l.schemaOverrides)||null==(c=d.fields)||null==(p=c.purposes_optin)?void 0:p.variants.length)>0&&(Y=(0,r.A)({},Y||{},{fields:(0,r.A)({},null!=(B=Y)&&B.fields?null==(V=Y)?void 0:V.fields:{},{purposes_optin:null==Z||null==(j=Z.encoder)?void 0:j.schemaOverrides.fields.purposes_optin})}));Array.isArray(null==Z||null==(v=Z.encoder)||null==(f=v.schemaOverrides)||null==(h=f.fields)||null==(g=h.purposes_optout)?void 0:g.variants)&&(null==Z||null==(m=Z.encoder)||null==(b=m.schemaOverrides)||null==(y=b.fields)||null==(_=y.purposes_optout)?void 0:_.variants.length)>0&&(Y=(0,r.A)({},Y||{},{fields:(0,r.A)({},null!=(M=Y)&&M.fields?null==(F=Y)?void 0:F.fields:{},{purposes_optout:null==Z||null==(z=Z.encoder)?void 0:z.schemaOverrides.fields.purposes_optout})}));Array.isArray(null==Z||null==(I=Z.encoder)||null==(S=I.schemaOverrides)||null==(w=S.fields)||null==(A=w.vendors_optin)?void 0:A.variants)&&(null==Z||null==(C=Z.encoder)||null==(P=C.schemaOverrides)||null==(k=P.fields)||null==(E=k.vendors_optin)?void 0:E.variants.length)>0&&(Y=(0,r.A)({},Y||{},{fields:(0,r.A)({},null!=(W=Y)&&W.fields?null==(G=Y)?void 0:G.fields:{},{vendors_optin:null==Z||null==(H=Z.encoder)?void 0:H.schemaOverrides.fields.vendors_optin})}));Array.isArray(null==Z||null==(O=Z.encoder)||null==(T=O.schemaOverrides)||null==(L=T.fields)||null==(x=L.vendors_optout)?void 0:x.variants)&&(null==Z||null==(R=Z.encoder)||null==(U=R.schemaOverrides)||null==(D=U.fields)||null==(N=D.vendors_optout)?void 0:N.variants.length)>0&&(Y=(0,r.A)({},Y||{},{fields:(0,r.A)({},null!=(K=Y)&&K.fields?null==(J=Y)?void 0:J.fields:{},{vendors_optout:null==Z||null==(q=Z.encoder)?void 0:q.schemaOverrides.fields.vendors_optout})}));return(0,i.l)($)?{version:$,signatureEnabled:!0===(null==Z?void 0:Z.signatureEnabled),isDidomiConsentStringEncodingEnabled:!0,schemaOverrides:Y}:(void 0!==$&&console.error(u.a.didomiPrefix+"The Didomi Consent String version ["+$+"] is invalid"),{version:void 0,signatureEnabled:!1,isDidomiConsentStringEncodingEnabled:!1,schemaOverrides:Y})}),d=(0,s.QZ)(()=>{var e;null!=(e=l.value)&&e.isDidomiConsentStringEncodingEnabled&&((0,a.h)(),d())})},75240:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=n(58168),s=n(34576),o=n(20259),i=n(98957),a=(0,s.EW)(()=>{var e,t,n,s;if(Array.isArray(null==(e=o.bK.value)||null==(t=e.integrations)?void 0:t.browser)){var a=o.bK.value.integrations.browser.filter(e=>"gpc"===e.type)[0];if(a){var u=Array.isArray(a.purposes)?[...a.purposes]:[],l=a.territories,d=Array.isArray(l)?l:[],c=null==(n=i.h.value)?void 0:n.country,p=null==(s=i.h.value)?void 0:s.region,v=c?p?c+"-"+p:c:null,f=void 0===l||null!==v&&d.includes(v);return(0,r.A)({},a,{purposes:u,territories:d,enabled:f})}}})},75604:function(e,t,n){var r={"./ar-JO/ctv/":[22068,"ui-ctv0"],"./ar/ctv/":[62084,"ui-ctv1"],"./az-AZ/ctv/":[99556,"ui-ctv2"],"./bg/ctv/":[40708,"ui-ctv3"],"./bn-IN/ctv/":[83789,"ui-ctv4"],"./ca/ctv/":[91943,"ui-ctv5"],"./cs/ctv/":[68149,"ui-ctv6"],"./da/ctv/":[95604,"ui-ctv7"],"./de-AT/ctv/":[68666,"ui-ctv8"],"./de-CH/ctv/":[96212,"ui-ctv9"],"./de/ctv/":[37864,"ui-ctv10"],"./el/ctv/":[64114,"ui-ctv11"],"./en-GB/ctv/":[39722,"ui-ctv12"],"./en-NZ/ctv/":[66531,"ui-ctv13"],"./en/ctv/":[16924,"ui-ctv14"],"./es/ctv/":[24295,"ui-ctv15"],"./et/ctv/":[34346,"ui-ctv16"],"./fi/ctv/":[61642,"ui-ctv17"],"./fil/ctv/":[94050,"ui-ctv18"],"./fr-BE/ctv/":[67431,"ui-ctv19"],"./fr-CA/ctv/":[3098,"ui-ctv20"],"./fr/ctv/":[29067,"ui-ctv21"],"./he/ctv/":[65396,"ui-ctv22"],"./hi-IN/ctv/":[16060,"ui-ctv23"],"./hr/ctv/":[62517,"ui-ctv24"],"./hu/ctv/":[66948,"ui-ctv25"],"./id/ctv/":[79110,"ui-ctv26"],"./it/ctv/":[43446,"ui-ctv27"],"./ja/ctv/":[54390,"ui-ctv28"],"./ko/ctv/":[84657,"ui-ctv29"],"./lt/ctv/":[37023,"ui-ctv30"],"./lv/ctv/":[77469,"ui-ctv31"],"./mk-MK/ctv/":[61730,"ui-ctv32"],"./ms/ctv/":[89679,"ui-ctv33"],"./nl-BE/ctv/":[13521,"ui-ctv34"],"./nl/ctv/":[45533,"ui-ctv35"],"./no/ctv/":[94592,"ui-ctv36"],"./pl/ctv/":[79827,"ui-ctv37"],"./pt-BR/ctv/":[37642,"ui-ctv38"],"./pt/ctv/":[2203,"ui-ctv39"],"./ro/ctv/":[19692,"ui-ctv40"],"./ru/ctv/":[43738,"ui-ctv41"],"./sk/ctv/":[87693,"ui-ctv42"],"./sl/ctv/":[13340,"ui-ctv43"],"./sr-Latn/ctv/":[3340,"ui-ctv44"],"./sr/ctv/":[30110,"ui-ctv45"],"./sv/ctv/":[76618,"ui-ctv46"],"./sw/ctv/":[82081,"ui-ctv47"],"./th/ctv/":[62539,"ui-ctv48"],"./tr/ctv/":[60865,"ui-ctv49"],"./uk/ctv/":[23487,"ui-ctv50"],"./vi/ctv/":[9562,"ui-ctv51"],"./zh-CN/ctv/":[65349,"ui-ctv52"],"./zh-TW/ctv/":[70265,"ui-ctv53"]};function s(e){if(!n.o(r,e))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],s=t[0];return n.e(t[1]).then(function(){return n(s)})}s.keys=function(){return Object.keys(r)},s.id=75604,e.exports=s},76381:function(e,t,n){"use strict";var r;n.d(t,{$:function(){return s},B:function(){return r}});var s=e=>{r=e}},76406:function(e,t,n){"use strict";n.d(t,{H:function(){return d}});var r=n(58168),s=n(34576),o=n(2073),i=n(66559),a=n(77396),u=n(58975),l=n(50378),d=(0,s.EW)(()=>{var e,t={firstPartyOperators:[],firstPartyOperatorIds:[],thirdPartyOperators:[],thirdPartyOperatorIds:[],operators:[],operatorsByProcessingRule:{firstPartyOperatorIds:{optin:[],optout:[],essential:[],specialPurposes:[]},thirdPartyOperatorIds:{optin:[],optout:[],essential:[],specialPurposes:[]},operatorIds:{optin:[],optout:[],essential:[],specialPurposes:[]}},operatorIdsByCollectionMethod:{optin:[],optout:[],essential:[],specialPurposes:[]},operatorIdsWithAtLeastOneOptinPurpose:[],operatorIdsWithAtLeastOneOptoutPurpose:[]};if(null==(e=o.R.value)||!e.length||(0,l.Im)(i.o.value))return t;var n=function(e){var n=i.o.value[e];if(n){var{operatorTypeIdsKey:s,operatorTypeKey:o}="1st_party"===n.type?{operatorTypeIdsKey:"firstPartyOperatorIds",operatorTypeKey:"firstPartyOperators"}:{operatorTypeIdsKey:"thirdPartyOperatorIds",operatorTypeKey:"thirdPartyOperators"},l=((e,t)=>{var n,r=new Set,s=[];return e.purposeIds&&e.purposeIds.length>0&&(s.push(...e.purposeIds),e.purposeIds.every(e=>t.includes(e))?r.add("essential"):r.add("optin")),e.legIntPurposeIds&&e.legIntPurposeIds.length>0&&(s.push(...e.legIntPurposeIds),e.legIntPurposeIds.every(e=>t.includes(e))?r.add("essential"):r.add("optout")),s.some(e=>t.includes(e))&&r.add("essential"),0===r.size&&(null==(n=e.specialPurposeIds)?void 0:n.length)>0&&r.add("specialPurposes"),[...r]})(n,a.T.value),d=((e,t,n)=>{var r=new Set;for(var s of t)for(var o of Object.keys(n)){var i=n[o].collect.operators[e];i.enable&&(Array.isArray(i.as)&&i.as.length?i.as.includes(s)&&r.add(o):o===s&&r.add(s))}return[...r]})(o,l,u.B.value),c=(0,r.A)({},n,{processingRules:l,collectionMethods:d});t[o].push(c),t.operators.push(c),t[s].push(e),d.forEach(n=>t.operatorIdsByCollectionMethod[n].push(e)),l.forEach(n=>{t.operatorsByProcessingRule[s][n].push(e),t.operatorsByProcessingRule.operatorIds[n].push(e)}),n.legIntPurposeIds&&n.legIntPurposeIds.length>0&&t.operatorIdsWithAtLeastOneOptoutPurpose.push(e),n.purposeIds&&n.purposeIds.length>0&&t.operatorIdsWithAtLeastOneOptinPurpose.push(e)}};for(var s of o.R.value)n(s);return t})},76447:function(e,t){"use strict";function n(e,t){if(null!=t){if(t.then)return t.then(e.setState);e.setState(t)}}},76638:function(e,t,n){"use strict";n.d(t,{XK:function(){return a},aI:function(){return Q},FY:function(){return R},Y4:function(){return v},jT:function(){return X},de:function(){return ee},Mi:function(){return N},sH:function(){return G}});class r extends Error{constructor(e){super(e),this.name="DecodingError"}}class s extends Error{constructor(e){super(e),this.name="EncodingError"}}class o extends Error{constructor(e){super(e),this.name="GVLError"}}class i extends Error{constructor(e,t,n){void 0===n&&(n=""),super("invalid value "+t+" passed for "+e+" "+n),this.name="TCModelError"}}class a{static encode(e){if(!/^[0-1]+$/.test(e))throw new s("Invalid bitField");var t=e.length%this.LCM;e+=t?"0".repeat(this.LCM-t):"";for(var n="",r=0;r=2&&2==t.length){if(u.langSet.has(e))return e;if(u.langSet.has(t))return t;var n=t+"-"+t;if(u.langSet.has(n))return n;for(var r of u.langSet)if(-1!==r.indexOf(e)||-1!==r.indexOf(t))return r}throw new Error("unsupported language "+e)}forEach(e){u.langSet.forEach(e)}get size(){return u.langSet.size}}u.langSet=new Set(["AR","BG","BS","CA","CS","CY","DA","DE","EL","EN","ES","ET","EU","FI","FR","GL","HE","HI","HR","HU","ID","IS","IT","JA","KO","LT","LV","MK","MS","MT","NL","NO","PL","PT-BR","PT-PT","RO","RU","SK","SL","SR-LATN","SR-CYRL","SV","TL","TR","UK","ZH","ZH-HANT"]);class l{}l.cmpId="cmpId",l.cmpVersion="cmpVersion",l.consentLanguage="consentLanguage",l.consentScreen="consentScreen",l.created="created",l.supportOOB="supportOOB",l.isServiceSpecific="isServiceSpecific",l.lastUpdated="lastUpdated",l.numCustomPurposes="numCustomPurposes",l.policyVersion="policyVersion",l.publisherCountryCode="publisherCountryCode",l.publisherCustomConsents="publisherCustomConsents",l.publisherCustomLegitimateInterests="publisherCustomLegitimateInterests",l.publisherLegitimateInterests="publisherLegitimateInterests",l.publisherConsents="publisherConsents",l.publisherRestrictions="publisherRestrictions",l.purposeConsents="purposeConsents",l.purposeLegitimateInterests="purposeLegitimateInterests",l.purposeOneTreatment="purposeOneTreatment",l.specialFeatureOptins="specialFeatureOptins",l.useNonStandardTexts="useNonStandardTexts",l.vendorConsents="vendorConsents",l.vendorLegitimateInterests="vendorLegitimateInterests",l.vendorListVersion="vendorListVersion",l.vendorsAllowed="vendorsAllowed",l.vendorsDisclosed="vendorsDisclosed",l.version="version";class d{clone(){var e=new this.constructor;return Object.keys(this).forEach(t=>{var n=this.deepClone(this[t]);void 0!==n&&(e[t]=n)}),e}deepClone(e){var t=typeof e;if("number"===t||"string"===t||"boolean"===t)return e;if(null!==e&&"object"===t){if("function"==typeof e.clone)return e.clone();if(e instanceof Date)return new Date(e.getTime());if(void 0!==e[Symbol.iterator]){var n=[];for(var r of e)n.push(this.deepClone(r));return e instanceof Array?n:new e.constructor(n)}var s={};for(var o in e)e.hasOwnProperty(o)&&(s[o]=this.deepClone(e[o]));return s}}}var c,p,v,f,h,g,m,b,y,_,I,S,w,A,C,P,k,E,O,T,L,x;!function(e){e[e.NOT_ALLOWED=0]="NOT_ALLOWED",e[e.REQUIRE_CONSENT=1]="REQUIRE_CONSENT",e[e.REQUIRE_LI=2]="REQUIRE_LI"}(c||(c={}));class R extends d{constructor(e,t){super(),this.purposeId_=void 0,this.restrictionType=void 0,void 0!==e&&(this.purposeId=e),void 0!==t&&(this.restrictionType=t)}static unHash(e){var t=e.split(this.hashSeparator),n=new R;if(2!==t.length)throw new i("hash",e);return n.purposeId=parseInt(t[0],10),n.restrictionType=parseInt(t[1],10),n}get hash(){if(!this.isValid())throw new Error("cannot hash invalid PurposeRestriction");return""+this.purposeId+R.hashSeparator+this.restrictionType}get purposeId(){return this.purposeId_}set purposeId(e){this.purposeId_=e}isValid(){return Number.isInteger(this.purposeId)&&this.purposeId>0&&(this.restrictionType===c.NOT_ALLOWED||this.restrictionType===c.REQUIRE_CONSENT||this.restrictionType===c.REQUIRE_LI)}isSameAs(e){return this.purposeId===e.purposeId&&this.restrictionType===e.restrictionType}}R.hashSeparator="-";class U extends d{constructor(){super(...arguments),this.bitLength=0,this.map=new Map,this.gvl_=void 0}has(e){return this.map.has(e)}isOkToHave(e,t,n){var r,s=!0;if(null!=(r=this.gvl)&&r.vendors){var o=this.gvl.vendors[n];if(o)if(e===c.NOT_ALLOWED)s=o.legIntPurposes.includes(t)||o.purposes.includes(t);else if(o.flexiblePurposes.length)switch(e){case c.REQUIRE_CONSENT:s=o.flexiblePurposes.includes(t)&&o.legIntPurposes.includes(t);break;case c.REQUIRE_LI:s=o.flexiblePurposes.includes(t)&&o.purposes.includes(t)}else s=!1;else s=!1}return s}add(e,t){if(this.isOkToHave(t.restrictionType,t.purposeId,e)){var n=t.hash;this.has(n)||(this.map.set(n,new Set),this.bitLength=0),this.map.get(n).add(e)}}restrictPurposeToLegalBasis(e,t){void 0===t&&(t=[...this.gvl.vendorIds]);var n=e.hash;if(this.has(n)){var r=this.map.get(n);for(var s of t)r.add(s)}else this.map.set(n,new Set(t)),this.bitLength=0}getVendors(e){var t=[];if(e){var n=e.hash;this.has(n)&&(t=[...this.map.get(n)])}else{var r=new Set;this.map.forEach(e=>{[...e].forEach(e=>{r.add(e)})}),t=[...r]}return t.sort((e,t)=>e-t)}getRestrictionType(e,t){var n;return this.getRestrictions(e).forEach(e=>{e.purposeId===t&&(void 0===n||n>e.restrictionType)&&(n=e.restrictionType)}),n}vendorHasRestriction(e,t){for(var n=!1,r=this.getRestrictions(e),s=0;s{var n=[...t];e=Math.max(n[n.length-1],e)}),e}getRestrictions(e){var t=[];return this.map.forEach((n,r)=>{e?n.has(e)&&t.push(R.unHash(r)):t.push(R.unHash(r))}),t}getPurposes(){var e=new Set;return this.map.forEach((t,n)=>{e.add(R.unHash(n).purposeId)}),[...e]}remove(e,t){var n=t.hash,r=this.map.get(n);r&&(r.delete(e),0==r.size&&(this.map.delete(n),this.bitLength=0))}set gvl(e){this.gvl_||(this.gvl_=e,this.map.forEach((e,t)=>{var n=R.unHash(t);[...e].forEach(t=>{this.isOkToHave(n.restrictionType,n.purposeId,t)||e.delete(t)})}))}get gvl(){return this.gvl_}isEmpty(){return 0===this.map.size}get numRestrictions(){return this.map.size}}!function(e){e.COOKIE="cookie",e.WEB="web",e.APP="app"}(p||(p={})),function(e){e.CORE="core",e.VENDORS_DISCLOSED="vendorsDisclosed",e.VENDORS_ALLOWED="vendorsAllowed",e.PUBLISHER_TC="publisherTC"}(v||(v={}));class D{}D.ID_TO_KEY=[v.CORE,v.VENDORS_DISCLOSED,v.VENDORS_ALLOWED,v.PUBLISHER_TC],D.KEY_TO_ID={[v.CORE]:0,[v.VENDORS_DISCLOSED]:1,[v.VENDORS_ALLOWED]:2,[v.PUBLISHER_TC]:3};class N extends d{constructor(){super(...arguments),this.bitLength=0,this.maxId_=0,this.set_=new Set}*[Symbol.iterator](){for(var e=1;e<=this.maxId;e++)yield[e,this.has(e)]}toArray(){for(var e=new Array(0),t=1;t<=this.maxId;t++)e.push([t,this.has(t)]);return e}values(){return this.set_.values()}get maxId(){return this.maxId_}has(e){return this.set_.has(e)}unset(e){Array.isArray(e)?e.forEach(e=>this.unset(e)):"object"==typeof e?this.unset(Object.keys(e).map(e=>Number(e))):(this.set_.delete(Number(e)),this.bitLength=0,e===this.maxId&&(this.maxId_=0,this.set_.forEach(e=>{this.maxId_=Math.max(this.maxId,e)})))}isIntMap(e){var t="object"==typeof e;return t=t&&Object.keys(e).every(t=>{var n=Number.isInteger(parseInt(t,10));return n=(n=n&&this.isValidNumber(e[t].id))&&void 0!==e[t].name})}isValidNumber(e){return parseInt(e,10)>0}isSet(e){var t=!1;return e instanceof Set&&(t=Array.from(e).every(this.isValidNumber)),t}set(e){if(Array.isArray(e))e.forEach(e=>this.set(e));else if(this.isSet(e))this.set(Array.from(e));else if(this.isIntMap(e))this.set(Object.keys(e).map(e=>Number(e)));else{if(!this.isValidNumber(e))throw new i("set()",e,"must be positive integer array, positive integer, Set, or IntMap");this.set_.add(e),this.maxId_=Math.max(this.maxId,e),this.bitLength=0}}empty(){this.set_=new Set}forEach(e){for(var t=1;t<=this.maxId;t++)e(this.has(t),t)}get size(){return this.set_.size}setAll(e){this.set(e)}unsetAll(e){this.unset(e)}}f=l.cmpId,h=l.cmpVersion,g=l.consentLanguage,m=l.consentScreen,b=l.created,y=l.isServiceSpecific,_=l.lastUpdated,I=l.policyVersion,S=l.publisherCountryCode,w=l.publisherLegitimateInterests,A=l.publisherConsents,C=l.purposeConsents,P=l.purposeLegitimateInterests,k=l.purposeOneTreatment,E=l.specialFeatureOptins,O=l.useNonStandardTexts,T=l.vendorListVersion,L=l.version;class B{}B[f]=12,B[h]=12,B[g]=12,B[m]=6,B[b]=36,B[y]=1,B[_]=36,B[I]=6,B[S]=12,B[w]=24,B[A]=24,B[C]=24,B[P]=24,B[k]=1,B[E]=12,B[O]=1,B[T]=12,B[L]=6,B.anyBoolean=1,B.encodingType=1,B.maxId=16,B.numCustomPurposes=6,B.numEntries=12,B.numRestrictions=12,B.purposeId=6,B.restrictionType=2,B.segmentType=3,B.singleOrRange=1,B.vendorId=16;class V{static encode(e,t){var n;if("string"==typeof e&&(e=parseInt(e,10)),(n=e.toString(2)).length>t||e<0)throw new s(e+" too large to encode into "+t);return n.length25||r<0||r>25)throw new s("invalid language code: "+e);if(t%2==1)throw new s("numBits must be even, "+t+" is not valid");return t/=2,V.encode(n,t)+V.encode(r,t)}static decode(e,t){if(t!==e.length||e.length%2)throw new r("invalid bit length for language");var n=e.length/2,s=V.decode(e.slice(0,n),n)+65,o=V.decode(e.slice(n),n)+65;return String.fromCharCode(s)+String.fromCharCode(o)}}class W{static encode(e){var t=V.encode(e.numRestrictions,B.numRestrictions);if(!e.isEmpty()){var n=[...e.gvl.vendorIds],r=(e,t)=>{var r=n.indexOf(e);return n.indexOf(t)-r>1};e.getRestrictions().forEach(n=>{t+=V.encode(n.purposeId,B.purposeId),t+=V.encode(n.restrictionType,B.restrictionType);for(var s=e.getVendors(n),o=s.length,i=0,a=0,u="",l=0;lo+t);n.restrictPurposeToLegalBasis(u,a)}else n.restrictPurposeToLegalBasis(u,[o])},c=0;c{(o+=M.encode(s),(t=e.maxId>u&&l{var t=1===e.length;n+=M.encode(!t),n+=V.encode(e[0],B.vendorId),t||(n+=V.encode(e[1],B.vendorId))}),n}}function H(){return{[l.version]:V,[l.created]:j,[l.lastUpdated]:j,[l.cmpId]:V,[l.cmpVersion]:V,[l.consentScreen]:V,[l.consentLanguage]:z,[l.vendorListVersion]:V,[l.policyVersion]:V,[l.isServiceSpecific]:M,[l.useNonStandardTexts]:M,[l.specialFeatureOptins]:F,[l.purposeConsents]:F,[l.purposeLegitimateInterests]:F,[l.purposeOneTreatment]:M,[l.publisherCountryCode]:z,[l.vendorConsents]:G,[l.vendorLegitimateInterests]:G,[l.publisherRestrictions]:W,segmentType:V,[l.vendorsDisclosed]:G,[l.vendorsAllowed]:G,[l.publisherConsents]:F,[l.publisherLegitimateInterests]:F,[l.numCustomPurposes]:V,[l.publisherCustomConsents]:F,[l.publisherCustomLegitimateInterests]:F}}class K{constructor(e,t){if(this[1]=[v.CORE],this[2]=[v.CORE],2===e.version)if(e.isServiceSpecific)this[2].push(v.VENDORS_DISCLOSED),this[2].push(v.PUBLISHER_TC);else{var n=!(!t||!t.isForVendors);n&&!0!==e[l.supportOOB]||this[2].push(v.VENDORS_DISCLOSED),n&&(e[l.supportOOB]&&e[l.vendorsAllowed].size>0&&this[2].push(v.VENDORS_ALLOWED),this[2].push(v.PUBLISHER_TC))}}}class J{static encode(e,t){var n;try{n=this.fieldSequence[String(e.version)][t]}catch(n){throw new s("Unable to encode version: "+e.version+", segment: "+t)}var r="";t!==v.CORE&&(r=V.encode(D.KEY_TO_ID[t],B.segmentType));var o=H();return n.forEach(n=>{var i=e[n],a=o[n],u=B[n];void 0===u&&this.isPublisherCustom(n)&&(u=Number(e[l.numCustomPurposes]));try{r+=a.encode(i,u)}catch(e){throw new s("Error encoding "+t+"->"+n+": "+e.message)}}),a.encode(r)}static decode(e,t,n){var s=a.decode(e),o=0;n===v.CORE&&(t.version=V.decode(s.substr(o,B[l.version]),B[l.version])),n!==v.CORE&&(o+=B.segmentType);var i=this.fieldSequence[String(t.version)][n],u=H();return i.forEach(e=>{var n=u[e],i=B[e];if(void 0===i&&this.isPublisherCustom(e)&&(i=Number(t[l.numCustomPurposes])),0!==i){var a=s.substr(o,i);if(t[e]=n===G?n.decode(a,t.version):n.decode(a,i),Number.isInteger(i))o+=i;else{if(!Number.isInteger(t[e].bitLength))throw new r(e);o+=t[e].bitLength}}}),t}static isPublisherCustom(e){return 0===e.indexOf("publisherCustom")}}J.fieldSequence=new class{constructor(){this[1]={[v.CORE]:[l.version,l.created,l.lastUpdated,l.cmpId,l.cmpVersion,l.consentScreen,l.consentLanguage,l.vendorListVersion,l.purposeConsents,l.vendorConsents]},this[2]={[v.CORE]:[l.version,l.created,l.lastUpdated,l.cmpId,l.cmpVersion,l.consentScreen,l.consentLanguage,l.vendorListVersion,l.policyVersion,l.isServiceSpecific,l.useNonStandardTexts,l.specialFeatureOptins,l.purposeConsents,l.purposeLegitimateInterests,l.purposeOneTreatment,l.publisherCountryCode,l.vendorConsents,l.vendorLegitimateInterests,l.publisherRestrictions],[v.VENDORS_DISCLOSED]:[l.vendorsDisclosed],[v.PUBLISHER_TC]:[l.publisherConsents,l.publisherLegitimateInterests,l.numCustomPurposes,l.publisherCustomConsents,l.publisherCustomLegitimateInterests],[v.VENDORS_ALLOWED]:[l.vendorsAllowed]}}};class q{static process(e,t){var n=e.gvl;if(!n)throw new s("Unable to encode TCModel without a GVL");if(!n.isReady)throw new s("Unable to encode TCModel tcModel.gvl.readyPromise is not resolved");(e=e.clone()).consentLanguage=n.language.slice(0,2).toUpperCase(),(null==t?void 0:t.version)>0&&(null==t?void 0:t.version)<=this.processor.length?e.version=t.version:e.version=this.processor.length;var r=e.version-1;if(!this.processor[r])throw new s("Invalid version: "+e.version);return this.processor[r](e,n)}}q.processor=[e=>e,(e,t)=>{e.publisherRestrictions.gvl=t,e.purposeLegitimateInterests.unset([1,3,4,5,6]);var n=new Map;return n.set("legIntPurposes",e.vendorLegitimateInterests),n.set("purposes",e.vendorConsents),n.forEach((n,r)=>{n.forEach((s,o)=>{if(s){var i=t.vendors[o];if(!i||i.deletedDate)n.unset(o);else if(0===i[r].length)if("legIntPurposes"===r&&0===i.purposes.length&&0===i.legIntPurposes.length&&i.specialPurposes.length>0)n.set(o);else if("legIntPurposes"===r&&i.purposes.length>0&&0===i.legIntPurposes.length&&i.specialPurposes.length>0)n.set(o);else if(e.isServiceSpecific)if(0===i.flexiblePurposes.length)n.unset(o);else{for(var a=e.publisherRestrictions.getRestrictions(o),u=!1,l=0,d=a.length;l{var i=new XMLHttpRequest;i.withCredentials=n,i.addEventListener("load",()=>{if(i.readyState==XMLHttpRequest.DONE)if(i.status>=200&&i.status<300){var e=i.response;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}s(e)}else o(new Error("HTTP Status: "+i.status+" response type: "+i.responseType))}),i.addEventListener("error",()=>{o(new Error("error"))}),i.addEventListener("abort",()=>{o(new Error("aborted"))}),null===t?i.open("GET",e,!0):i.open("POST",e,!0),i.responseType="json",i.timeout=r,i.ontimeout=()=>{o(new Error("Timeout "+r+"ms "+e))},i.send(t)})}static post(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=0),this.absCall(e,JSON.stringify(t),n,r)}static fetch(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=0),this.absCall(e,null,t,n)}}class Q extends d{static set baseUrl(e){if(/^https?:\/\/vendorlist\.consensu\.org\//.test(e))throw new o("Invalid baseUrl! You may not pull directly from vendorlist.consensu.org and must provide your own cache");e.length>0&&"/"!==e[e.length-1]&&(e+="/"),this.baseUrl_=e}static get baseUrl(){return this.baseUrl_}constructor(e){super(),this.readyPromise=void 0,this.gvlSpecificationVersion=void 0,this.vendorListVersion=void 0,this.tcfPolicyVersion=void 0,this.lastUpdated=void 0,this.purposes=void 0,this.specialPurposes=void 0,this.features=void 0,this.specialFeatures=void 0,this.isReady_=!1,this.vendors_=void 0,this.vendorIds=void 0,this.fullVendorList=void 0,this.byPurposeVendorMap=void 0,this.bySpecialPurposeVendorMap=void 0,this.byFeatureVendorMap=void 0,this.bySpecialFeatureVendorMap=void 0,this.stacks=void 0,this.dataCategories=void 0,this.lang_=void 0,this.cacheLang_=void 0,this.isLatest=!1;var t=Q.baseUrl;if(this.lang_=Q.DEFAULT_LANGUAGE,this.cacheLang_=Q.DEFAULT_LANGUAGE,this.isVendorList(e))this.populate(e),this.readyPromise=Promise.resolve();else{if(!t)throw new o("must specify GVL.baseUrl before loading GVL json");if(e>0){var n=e;Q.CACHE.has(n)?(this.populate(Q.CACHE.get(n)),this.readyPromise=Promise.resolve()):(t+=Q.versionedFilename.replace("[VERSION]",String(n)),this.readyPromise=this.fetchJson(t))}else Q.CACHE.has(Q.LATEST_CACHE_KEY)?(this.populate(Q.CACHE.get(Q.LATEST_CACHE_KEY)),this.readyPromise=Promise.resolve()):(this.isLatest=!0,this.readyPromise=this.fetchJson(t+Q.latestFilename))}}static emptyLanguageCache(e){var t=!1;return null==e&&Q.LANGUAGE_CACHE.size>0?(Q.LANGUAGE_CACHE=new Map,t=!0):"string"==typeof e&&this.consentLanguages.has(e.toUpperCase())&&(Q.LANGUAGE_CACHE.delete(e.toUpperCase()),t=!0),t}static emptyCache(e){var t=!1;return Number.isInteger(e)&&e>=0?(Q.CACHE.delete(e),t=!0):void 0===e&&(Q.CACHE=new Map,t=!0),t}cacheLanguage(){Q.LANGUAGE_CACHE.has(this.cacheLang_)||Q.LANGUAGE_CACHE.set(this.cacheLang_,{purposes:this.purposes,specialPurposes:this.specialPurposes,features:this.features,specialFeatures:this.specialFeatures,stacks:this.stacks,dataCategories:this.dataCategories})}fetchJson(e){var t=this;return(0,$.A)(function*(){try{t.populate(yield Y.fetch(e))}catch(e){throw new o(e.message)}})()}getJson(){return(0,Z.A)({gvlSpecificationVersion:this.gvlSpecificationVersion,vendorListVersion:this.vendorListVersion,tcfPolicyVersion:this.tcfPolicyVersion,lastUpdated:this.lastUpdated,purposes:this.clonePurposes(),specialPurposes:this.cloneSpecialPurposes(),features:this.cloneFeatures(),specialFeatures:this.cloneSpecialFeatures(),stacks:this.cloneStacks()},this.dataCategories?{dataCategories:this.cloneDataCategories()}:{},{vendors:this.cloneVendors()})}cloneSpecialFeatures(){var e={};for(var t of Object.keys(this.specialFeatures))e[t]=Q.cloneFeature(this.specialFeatures[t]);return e}cloneFeatures(){var e={};for(var t of Object.keys(this.features))e[t]=Q.cloneFeature(this.features[t]);return e}cloneStacks(){var e={};for(var t of Object.keys(this.stacks))e[t]=Q.cloneStack(this.stacks[t]);return e}cloneDataCategories(){var e={};for(var t of Object.keys(this.dataCategories))e[t]=Q.cloneDataCategory(this.dataCategories[t]);return e}cloneSpecialPurposes(){var e={};for(var t of Object.keys(this.specialPurposes))e[t]=Q.clonePurpose(this.specialPurposes[t]);return e}clonePurposes(){var e={};for(var t of Object.keys(this.purposes))e[t]=Q.clonePurpose(this.purposes[t]);return e}static clonePurpose(e){return(0,Z.A)({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{},e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}static cloneFeature(e){return(0,Z.A)({id:e.id,name:e.name,description:e.description},e.descriptionLegal?{descriptionLegal:e.descriptionLegal}:{},e.illustrations?{illustrations:Array.from(e.illustrations)}:{})}static cloneDataCategory(e){return{id:e.id,name:e.name,description:e.description}}static cloneStack(e){return{id:e.id,name:e.name,description:e.description,purposes:Array.from(e.purposes),specialFeatures:Array.from(e.specialFeatures)}}static cloneDataRetention(e){return(0,Z.A)({},"number"==typeof e.stdRetention?{stdRetention:e.stdRetention}:{},{purposes:(0,Z.A)({},e.purposes),specialPurposes:(0,Z.A)({},e.specialPurposes)})}static cloneVendorUrls(e){return e.map(e=>(0,Z.A)({langId:e.langId,privacy:e.privacy},e.legIntClaim?{legIntClaim:e.legIntClaim}:{}))}static cloneVendor(e){return(0,Z.A)({id:e.id,name:e.name,purposes:Array.from(e.purposes),legIntPurposes:Array.from(e.legIntPurposes),flexiblePurposes:Array.from(e.flexiblePurposes),specialPurposes:Array.from(e.specialPurposes),features:Array.from(e.features),specialFeatures:Array.from(e.specialFeatures)},e.overflow?{overflow:{httpGetLimit:e.overflow.httpGetLimit}}:{},"number"==typeof e.cookieMaxAgeSeconds||null===e.cookieMaxAgeSeconds?{cookieMaxAgeSeconds:e.cookieMaxAgeSeconds}:{},void 0!==e.usesCookies?{usesCookies:e.usesCookies}:{},e.policyUrl?{policyUrl:e.policyUrl}:{},void 0!==e.cookieRefresh?{cookieRefresh:e.cookieRefresh}:{},void 0!==e.usesNonCookieAccess?{usesNonCookieAccess:e.usesNonCookieAccess}:{},e.dataRetention?{dataRetention:this.cloneDataRetention(e.dataRetention)}:{},e.urls?{urls:this.cloneVendorUrls(e.urls)}:{},e.dataDeclaration?{dataDeclaration:Array.from(e.dataDeclaration)}:{},e.deviceStorageDisclosureUrl?{deviceStorageDisclosureUrl:e.deviceStorageDisclosureUrl}:{},e.deletedDate?{deletedDate:e.deletedDate}:{})}cloneVendors(){var e={};for(var t of Object.keys(this.fullVendorList))e[t]=Q.cloneVendor(this.fullVendorList[t]);return e}changeLanguage(e){var t=this;return(0,$.A)(function*(){var n=e;try{n=Q.consentLanguages.parseLanguage(e)}catch(e){throw new o("Error during parsing the language: "+e.message)}var r=e.toUpperCase();if((n.toLowerCase()!==Q.DEFAULT_LANGUAGE.toLowerCase()||Q.LANGUAGE_CACHE.has(r))&&n!==t.lang_)if(t.lang_=n,Q.LANGUAGE_CACHE.has(r)){var s=Q.LANGUAGE_CACHE.get(r);for(var i in s)s.hasOwnProperty(i)&&(t[i]=s[i])}else{var a=Q.baseUrl+Q.languageFilename.replace("[LANG]",t.lang_.toLowerCase());try{yield t.fetchJson(a),t.cacheLang_=r,t.cacheLanguage()}catch(e){throw new o("unable to load language: "+e.message)}}})()}get language(){return this.lang_}isVendorList(e){return void 0!==e&&void 0!==e.vendors}populate(e){this.purposes=e.purposes,this.specialPurposes=e.specialPurposes,this.features=e.features,this.specialFeatures=e.specialFeatures,this.stacks=e.stacks,this.dataCategories=e.dataCategories,this.isVendorList(e)&&(this.gvlSpecificationVersion=e.gvlSpecificationVersion,this.tcfPolicyVersion=e.tcfPolicyVersion,this.vendorListVersion=e.vendorListVersion,this.lastUpdated=e.lastUpdated,"string"==typeof this.lastUpdated&&(this.lastUpdated=new Date(this.lastUpdated)),this.vendors_=e.vendors,this.fullVendorList=e.vendors,this.mapVendors(),this.isReady_=!0,this.isLatest&&Q.CACHE.set(Q.LATEST_CACHE_KEY,this.getJson()),Q.CACHE.has(this.vendorListVersion)||Q.CACHE.set(this.vendorListVersion,this.getJson())),this.cacheLanguage()}mapVendors(e){this.byPurposeVendorMap={},this.bySpecialPurposeVendorMap={},this.byFeatureVendorMap={},this.bySpecialFeatureVendorMap={},Object.keys(this.purposes).forEach(e=>{this.byPurposeVendorMap[e]={legInt:new Set,consent:new Set,flexible:new Set}}),Object.keys(this.specialPurposes).forEach(e=>{this.bySpecialPurposeVendorMap[e]=new Set}),Object.keys(this.features).forEach(e=>{this.byFeatureVendorMap[e]=new Set}),Object.keys(this.specialFeatures).forEach(e=>{this.bySpecialFeatureVendorMap[e]=new Set}),Array.isArray(e)||(e=Object.keys(this.fullVendorList).map(e=>+e)),this.vendorIds=new Set(e),this.vendors_=e.reduce((e,t)=>{var n=this.vendors_[String(t)];return n&&void 0===n.deletedDate&&(n.purposes.forEach(e=>{this.byPurposeVendorMap[String(e)].consent.add(t)}),n.specialPurposes.forEach(e=>{this.bySpecialPurposeVendorMap[String(e)].add(t)}),n.legIntPurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].legInt.add(t)}),n.flexiblePurposes&&n.flexiblePurposes.forEach(e=>{this.byPurposeVendorMap[String(e)].flexible.add(t)}),n.features.forEach(e=>{this.byFeatureVendorMap[String(e)].add(t)}),n.specialFeatures.forEach(e=>{this.bySpecialFeatureVendorMap[String(e)].add(t)}),e[t]=n),e},{})}getFilteredVendors(e,t,n,r){var s=e.charAt(0).toUpperCase()+e.slice(1),o={};return("purpose"===e&&n?this["by"+s+"VendorMap"][String(t)][n]:this["by"+(r?"Special":"")+s+"VendorMap"][String(t)]).forEach(e=>{o[String(e)]=this.vendors[String(e)]}),o}getVendorsWithConsentPurpose(e){return this.getFilteredVendors("purpose",e,"consent")}getVendorsWithLegIntPurpose(e){return this.getFilteredVendors("purpose",e,"legInt")}getVendorsWithFlexiblePurpose(e){return this.getFilteredVendors("purpose",e,"flexible")}getVendorsWithSpecialPurpose(e){return this.getFilteredVendors("purpose",e,void 0,!0)}getVendorsWithFeature(e){return this.getFilteredVendors("feature",e)}getVendorsWithSpecialFeature(e){return this.getFilteredVendors("feature",e,void 0,!0)}get vendors(){return this.vendors_}narrowVendorsTo(e){this.mapVendors(e)}get isReady(){return this.isReady_}clone(){var e=new Q(this.getJson());return this.lang_!==Q.DEFAULT_LANGUAGE&&e.changeLanguage(this.lang_),e}static isInstanceOf(e){return"object"==typeof e&&"function"==typeof e.narrowVendorsTo}}Q.LANGUAGE_CACHE=new Map,Q.CACHE=new Map,Q.LATEST_CACHE_KEY=0,Q.DEFAULT_LANGUAGE="EN",Q.consentLanguages=new u,Q.baseUrl_=void 0,Q.latestFilename="vendor-list.json",Q.versionedFilename="archives/vendor-list-v[VERSION].json",Q.languageFilename="purposes-[LANG].json";class X extends d{constructor(e){super(),this.isServiceSpecific_=!0,this.supportOOB_=!1,this.useNonStandardTexts_=!1,this.purposeOneTreatment_=!1,this.publisherCountryCode_="AA",this.version_=2,this.consentScreen_=0,this.policyVersion_=5,this.consentLanguage_="EN",this.cmpId_=0,this.cmpVersion_=0,this.vendorListVersion_=0,this.numCustomPurposes_=0,this.gvl_=void 0,this.created=void 0,this.lastUpdated=void 0,this.specialFeatureOptins=new N,this.purposeConsents=new N,this.purposeLegitimateInterests=new N,this.publisherConsents=new N,this.publisherLegitimateInterests=new N,this.publisherCustomConsents=new N,this.publisherCustomLegitimateInterests=new N,this.customPurposes=void 0,this.vendorConsents=new N,this.vendorLegitimateInterests=new N,this.vendorsDisclosed=new N,this.vendorsAllowed=new N,this.publisherRestrictions=new U,e&&(this.gvl=e),this.updated()}set gvl(e){Q.isInstanceOf(e)||(e=new Q(e)),this.gvl_=e,this.publisherRestrictions.gvl=e}get gvl(){return this.gvl_}set cmpId(e){if(e=Number(e),!(Number.isInteger(e)&&e>1))throw new i("cmpId",e);this.cmpId_=e}get cmpId(){return this.cmpId_}set cmpVersion(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new i("cmpVersion",e);this.cmpVersion_=e}get cmpVersion(){return this.cmpVersion_}set consentScreen(e){if(e=Number(e),!(Number.isInteger(e)&&e>-1))throw new i("consentScreen",e);this.consentScreen_=e}get consentScreen(){return this.consentScreen_}set consentLanguage(e){this.consentLanguage_=e}get consentLanguage(){return this.consentLanguage_}set publisherCountryCode(e){if(!/^([A-z]){2}$/.test(e))throw new i("publisherCountryCode",e);this.publisherCountryCode_=e.toUpperCase()}get publisherCountryCode(){return this.publisherCountryCode_}set vendorListVersion(e){if((e=Number(e)|0)<0)throw new i("vendorListVersion",e);this.vendorListVersion_=e}get vendorListVersion(){return this.gvl?this.gvl.vendorListVersion:this.vendorListVersion_}set policyVersion(e){if(this.policyVersion_=parseInt(e,10),this.policyVersion_<0)throw new i("policyVersion",e)}get policyVersion(){return this.gvl?this.gvl.tcfPolicyVersion:this.policyVersion_}set version(e){this.version_=parseInt(e,10)}get version(){return this.version_}set isServiceSpecific(e){this.isServiceSpecific_=e}get isServiceSpecific(){return this.isServiceSpecific_}set useNonStandardTexts(e){this.useNonStandardTexts_=e}get useNonStandardTexts(){return this.useNonStandardTexts_}set supportOOB(e){this.supportOOB_=e}get supportOOB(){return this.supportOOB_}set purposeOneTreatment(e){this.purposeOneTreatment_=e}get purposeOneTreatment(){return this.purposeOneTreatment_}setAllVendorConsents(){this.vendorConsents.set(this.gvl.vendors)}unsetAllVendorConsents(){this.vendorConsents.empty()}setAllVendorsDisclosed(){this.vendorsDisclosed.set(this.gvl.vendors)}unsetAllVendorsDisclosed(){this.vendorsDisclosed.empty()}setAllVendorsAllowed(){this.vendorsAllowed.set(this.gvl.vendors)}unsetAllVendorsAllowed(){this.vendorsAllowed.empty()}setAllVendorLegitimateInterests(){this.vendorLegitimateInterests.set(this.gvl.vendors)}unsetAllVendorLegitimateInterests(){this.vendorLegitimateInterests.empty()}setAllPurposeConsents(){this.purposeConsents.set(this.gvl.purposes)}unsetAllPurposeConsents(){this.purposeConsents.empty()}setAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.set(this.gvl.purposes)}unsetAllPurposeLegitimateInterests(){this.purposeLegitimateInterests.empty()}setAllSpecialFeatureOptins(){this.specialFeatureOptins.set(this.gvl.specialFeatures)}unsetAllSpecialFeatureOptins(){this.specialFeatureOptins.empty()}setAll(){this.setAllVendorConsents(),this.setAllPurposeLegitimateInterests(),this.setAllSpecialFeatureOptins(),this.setAllPurposeConsents(),this.setAllVendorLegitimateInterests()}unsetAll(){this.unsetAllVendorConsents(),this.unsetAllPurposeLegitimateInterests(),this.unsetAllSpecialFeatureOptins(),this.unsetAllPurposeConsents(),this.unsetAllVendorLegitimateInterests()}get numCustomPurposes(){var e=this.numCustomPurposes_;if("object"==typeof this.customPurposes){var t=Object.keys(this.customPurposes).sort((e,t)=>Number(e)-Number(t));e=parseInt(t.pop(),10)}return e}set numCustomPurposes(e){if(this.numCustomPurposes_=parseInt(e,10),this.numCustomPurposes_<0)throw new i("numCustomPurposes",e)}updated(){var e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));this.created=t,this.lastUpdated=t}}X.consentLanguages=Q.consentLanguages;class ee{static encode(e,t){var n,r="";return e=q.process(e,t),(n=Array.isArray(null==t?void 0:t.segments)?t.segments:new K(e,t)[""+e.version]).forEach((t,s)=>{var o="";s{var e,t=null==(e=r.U.value)?void 0:e.essentialPurposes;return t&&Array.isArray(t)?t.filter(Boolean).filter(e=>{var t,n;return"custom"===(null==(t=s.m.value)||null==(n=t[e])?void 0:n.namespace)}):[]})},78691:function(e,t,n){"use strict";n.d(t,{Y:function(){return d},x:function(){return l}});var r=n(58168),s=n(34576),o=e=>/^[A-Za-z0-9-_]+$/.test(e),i=n(20152),a=n(98074),u=n(25159),l=(0,s.EW)(()=>{var e,t=null==(e=i.U.value)?void 0:e.customPurposes,n=[];if(t&&Array.isArray(t))for(var s of t)o(s.id)?a.B.value.includes(s.id)||n.push((0,r.A)({},s,{namespace:"custom"})):console.error(u.a.didomiPrefix+'The purpose id "'+s.id+'" is not valid. Ignoring it.');return n}),d=(0,s.EW)(()=>l.value.map(e=>e.id))},78939:function(e,t,n){"use strict";n.d(t,{M:function(){return a},b:function(){return i}});var r=n(34576),s=n(20259),o=n(50378),i=(0,r.EW)(()=>{var e,t,n,r,i=(0,o.Go)({apiPath:"https://api.privacy-center.org/v1",environment:"production",customSDKPath:"https://sdk.privacy-center.org/custom/",sdkPathForTCFVendorsStorageDisclosures:"https://sdk.privacy-center.org/",iabGlobalCookiesDomain:"didomi.mgr.consensu.org",globalCookiesProtocol:"https",pmpSdkPath:"https://pmp-sdk.privacy-center.org",removeDeletedIABVendorsForAllClients:!0,removeDeletedIABVendorsForAPIKeys:[],events:{sampleSizes:{pageview:.03,consentAsked:.1,consentGiven:1,uiActionPreferencesPurposes:1,uiActionPreferencesVendors:1,uiActionPreferencesPurposeChanged:1,uiActionPreferencesVendorChanged:1,uiActionPreferencesShownPersonalDataTypes:1,uiActionPreferencesSPIChanged:1,syncAcknowledged:1}}});return s.bK.value&&Object.hasOwn(s.bK.value,"apiPath")&&"string"==typeof(null==(e=s.bK.value)?void 0:e.apiPath)&&null!=(t=s.bK.value)&&t.apiPath&&(i.apiPath=s.bK.value.apiPath),s.bK.value&&Object.hasOwn(s.bK.value,"sdkPath")&&"string"==typeof(null==(n=s.bK.value)?void 0:n.sdkPath)&&null!=(r=s.bK.value)&&r.sdkPath&&(i.sdkPath=s.bK.value.sdkPath),i}),a=e=>Object.hasOwn(i.value,e)?i.value[e]:void 0},80029:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(22639),s=n(63364),o=n(50513),i=e=>{var t,n,i,{actions:a,vendors:u=[],categoryOrPurpose:l,vendor:d,spi:c}=e;null==(t=r.v.value)||null==(n=t.categories)||n.forEach(e=>{var t=(0,o.c)(e);t&&"category"===t.type&&(a.setCategoryState(t.id,l),t.children.filter(e=>"purpose"===e.type).forEach(e=>a.setPurposeState(e.purposeId,l)))}),u.forEach(e=>a.setVendorState(e.id,d)),a.setAllVendorsState(d),null==(i=s.b.value)||i.forEach(e=>a.setSPIPurposesState(e,c)),a.setAllSPIUseState(c)}},80305:function(e,t,n){"use strict";n.d(t,{M:function(){return r},R:function(){return s}});var r=(0,n(34576).vP)(null),s=e=>{r.value=e}},80759:function(e,t,n){"use strict";n.d(t,{$:function(){return r}});var r=(e,t,n)=>{var r=t.filter(e=>!n.includes(e));if(!Array.isArray(e)||0===e.length)return r;var s=t.filter(t=>e.includes(t)&&!n.includes(t));return s.length>0?s:r}},81062:function(e,t,n){"use strict";n.d(t,{A:function(){return R}});var r,s,o,i,a,u,l,d,c,p,v,f,h,g,m,b,y,_,I,S,w,A,C,P,k,E,O,T=n(34576),L=window.didomiVendorListCore||{v:0,l:"",gsv:3,tpv:5,p:[],sp:[],f:[],sf:[],st:[],s:[]},x={vendorListVersion:null==L?void 0:L.v,lastUpdated:null==L?void 0:L.l,gvlSpecificationVersion:null==L?void 0:L.gsv,tcfPolicyVersion:null==L?void 0:L.tpv,purposes:null==L||null==(r=L.p)?void 0:r.map(e=>({id:e})),specialPurposes:null==L||null==(s=L.sp)?void 0:s.map(e=>({id:e})),features:null==L||null==(o=L.f)?void 0:o.map(e=>({id:e})),specialFeatures:null==L||null==(i=L.sf)?void 0:i.map(e=>({id:e})),stacks:null==L||null==(a=L.st)?void 0:a.map(e=>({id:null==e?void 0:e.i,purposeIds:(null==e?void 0:e.p)||[],specialFeatureIds:(null==e?void 0:e.sf)||[]})),vendors:null==L||null==(u=L.s)?void 0:u.map(e=>({id:null==e?void 0:e.i,purposeIds:(null==e?void 0:e.p)||[],flexiblePurposeIds:(null==e?void 0:e.fp)||[],specialPurposeIds:(null==e?void 0:e.sp)||[],legIntPurposeIds:(null==e?void 0:e.l)||[],featureIds:(null==e?void 0:e.f)||[],specialFeatureIds:(null==e?void 0:e.sf)||[],didomiId:null==e?void 0:e.di,tmpDeletedDate:null==e?void 0:e.dd}))};null!=(l=window)&&null!=(d=l.didomiConfig)&&null!=(c=d.website)&&null!=(p=c.vendors)&&null!=(v=p.iab)&&v.vendorList||null!=(f=window)&&null!=(h=f.didomiConfig)&&null!=(g=h.app)&&null!=(m=g.vendors)&&null!=(b=m.iab)&&b.vendorList?y=(null==(_=window)||null==(I=_.didomiConfig)||null==(S=I.website)||null==(w=S.vendors)||null==(A=w.iab)?void 0:A.vendorList)||(null==(C=window)||null==(P=C.didomiConfig)||null==(k=P.app)||null==(E=k.vendors)||null==(O=E.iab)?void 0:O.vendorList):y=x;var R=(0,T.vP)(y)},81509:function(e,t,n){"use strict";var r;n.d(t,{W:function(){return r},z:function(){return s}});var s=e=>{r=e}},81723:function(e,t,n){"use strict";n.d(t,{C:function(){return d}});var r=n(34576),s=n(20152),o=n(66559),i=n(81062),a=n(9757),u=n(36217),l=n(61304),d=(0,r.EW)(()=>{var e,t,n,r,d=null==(e=s.U.value)||null==(t=e.vendors)?void 0:t.iab;if(!d)return[];var c,p,v=[];(Array.isArray(d)&&(v=d),d===Object(d)&&d.all)?v.push(...null==(c=i.A.value)||null==(p=c.vendors)?void 0:p.map(e=>e.id)):d.include&&Array.isArray(d.include)&&v.push(...d.include);d.exclude&&Array.isArray(d.exclude)&&(v=v.filter(e=>!d.exclude.includes(e)));var f=null==(n=d.include)?void 0:n.includes(a.le.google),h=null==(r=d.exclude)?void 0:r.includes(a.le.google),g=u.D.value.includes("google");return v=v.map(e=>{var t,n;return null==(t=o.o.value)||null==(n=t[e])?void 0:n.id}).filter(Boolean),l.s.value&&(v=v.filter(e=>{var t,n;return!(null!=(t=o.o.value)&&null!=(n=t[e])&&n.tmpDeletedDate)||e===a.le.google})),(d.all||f||g)&&!h&&v.push("google"),v})},83587:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(34576),s=n(11843),o=(0,r.EW)(()=>{var e,t;return"mixed"===(null==(e=s.r.value)||null==(t=e.group)?void 0:t.name)})},83960:function(e,t,n){"use strict";n.d(t,{Hd:function(){return s},_B:function(){return r},ug:function(){return l}});var r,s,o=e=>{var t={};return null==e||e.map(e=>{t[e.id]={id:e.id,purposes:e.purposeIds,flexiblePurposes:e.flexiblePurposeIds,specialPurposes:e.specialPurposeIds,legIntPurposes:e.legIntPurposeIds,features:e.featureIds,specialFeatures:e.specialFeatureIds,name:"",urls:[],dataRetention:{stdRetention:0,purposes:{},specialPurposes:{}},dataDeclaration:[],policyUrl:"",cookieMaxAgeSeconds:0,usesCookies:!0,cookieRefresh:!0,usesNonCookieAccess:!1,deviceStorageDisclosureUrl:"",overflow:{httpGetLimit:32}}}),t},i=e=>{var t={};return null==e||e.map(e=>{t[e.id]={id:e.id,name:"",description:"",purposes:e.purposeIds,specialFeatures:e.specialFeatureIds}}),t},a=n(58168),u=e=>{var t={};return null==e||e.map(e=>{t[e.id]=(0,a.A)({},e,{name:"",description:"",illustrations:[]})}),t},l=e=>{s={vendorListVersion:(r=e).vendorListVersion,lastUpdated:r.lastUpdated,gvlSpecificationVersion:r.gvlSpecificationVersion,tcfPolicyVersion:r.tcfPolicyVersion,purposes:u(r.purposes),specialPurposes:u(r.specialPurposes),features:u(r.features),specialFeatures:u(r.specialFeatures),stacks:i(r.stacks),vendors:o(r.vendors),dataCategories:{}}}},84207:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(87127),s=n(19621);class o{constructor(){this.tC=new s.Wrapper("tC.event",["tC.domReady",["tC.event.didomiConsent","tC.event.didomiReady","tC.event.didomiConsentChanged"]])}setupCookies(e){var t=null==e?void 0:e.join(",");(0,r.Ri)("didomi_cookies")!==t&&(0,r.TV)("didomi_cookies",t,365)}update(e){var{type:t="didomi-consent-changed",customVariables:n={},allowedCategories:r}=e;this.setupCookies(r),this.tC.call("didomiConsent",{},n),"didomi-ready"===t?this.tC.call("didomiReady",{},n):this.tC.call("didomiConsentChanged",{},n)}}},84426:function(e,t,n){"use strict";n.d(t,{S:function(){return c}});var r={};n.r(r),n.d(r,{iabFeatures:function(){return l},iabSpecialPurposes:function(){return u},iabStacks:function(){return d},purposes:function(){return i},specialFeatures:function(){return a}});var s=n(34576),o=n(5125),{mP:i,nK:a,P2:u,qT:l,I3:d}=o,c=(0,s.vP)(r)},85914:function(e,t,n){var r;e=n.nmd(e),function(){var s=t,o=(e&&e.exports,"object"==typeof n.g&&n.g);o.global!==o&&o.window;var i=function(e){this.message=e};(i.prototype=new Error).name="InvalidCharacterError";var a=function(e){throw new i(e)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,r,s,o=e.length%3,i="",l=-1,d=e.length-o;++l>18&63)+u.charAt(s>>12&63)+u.charAt(s>>6&63)+u.charAt(63&s);return 2==o?(t=e.charCodeAt(l)<<8,n=e.charCodeAt(++l),i+=u.charAt((s=t+n)>>10)+u.charAt(s>>4&63)+u.charAt(s<<2&63)+"="):1==o&&(s=e.charCodeAt(l),i+=u.charAt(s>>2)+u.charAt(s<<4&63)+"=="),i},decode:function(e){var t=(e=String(e).replace(l,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,s=0,o="",i=-1;++i>(-2*s&6)));return o},version:"0.1.0"};void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}()},86923:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var r=n(34576),s=n(20152),o=(0,r.EW)(()=>{var e,t,n;return!1!==(null==(e=s.U.value)||null==(t=e.vendors)||null==(n=t.iab)?void 0:n.enabled)})},87127:function(e,t,n){"use strict";function r(e){if(e){var t=("; "+document.cookie).split("; "+e+"=");return 2!==t.length?void 0:t.pop().split(";").shift()}}n.d(t,{H3:function(){return c},Ri:function(){return r},Sd:function(){return l},TV:function(){return a},Yj:function(){return u},dD:function(){return p},kz:function(){return d},yE:function(){return v},zd:function(){return i}});var s="ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|be|bf|bg|bh|bi|bj|bm|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|cl|cm|cn|co|cr|cu|cv|cw|cx|cz|de|dj|dk|dm|do|dz|ec|ee|eg|es|et|eu|fi|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|im|in|io|iq|ir|is|it|je|jo|jp|kg|ki|km|kn|kp|kr|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|na|nc|ne|nf|ng|nl|no|nr|nu|nz|om|pa|pe|pf|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|yt".split("|"),o="co|com|edu|gov|net|mil|org|nom|sch|caa|res|off|gob|int|tur|ip6|uri|urn|asn|act|nsw|qld|tas|vic|pro|biz|adm|adv|agr|arq|art|ato|bio|bmd|cim|cng|cnt|ecn|eco|emp|eng|esp|etc|eti|far|fnd|fot|fst|g12|ggf|imb|ind|inf|jor|jus|leg|lel|mat|med|mus|not|ntr|odo|ppg|psc|psi|qsl|rec|slg|srv|teo|tmp|trd|vet|zlg|web|ltd|sld|pol|fin|k12|lib|pri|aip|fie|eun|sci|prd|cci|pvt|mod|idv|rel|sex|gen|nic|abr|bas|cal|cam|emr|fvg|laz|lig|lom|mar|mol|pmn|pug|sar|sic|taa|tos|umb|vao|vda|ven|mie|北海道|和歌山|神奈川|鹿児島|ass|rep|tra|per|ngo|soc|grp|plc|its|air|and|bus|can|ddr|jfk|mad|nrw|nyc|ski|spy|tcm|ulm|usa|war|fhs|vgs|dep|eid|fet|fla|flå|gol|hof|hol|sel|vik|cri|iwi|ing|abo|fam|gok|gon|gop|gos|aid|atm|gsm|sos|elk|waw|est|aca|bar|cpa|jur|law|sec|plo|www|bir|cbg|jar|khv|msk|nov|nsk|ptz|rnd|spb|stv|tom|tsk|udm|vrn|cmw|kms|nkz|snz|pub|fhv|red|ens|nat|rns|rnu|bbs|tel|bel|kep|nhs|dni|fed|isa|nsn|gub|e12|tec|орг|обр|упр|alt|nis|jpn|mex|ath|iki|nid|gda|inc|ab|bc|mb|nb|nf|nl|ns|nt|nu|on|pe|qc|sk|yk".split("|");function i(e){for(var t=(e=e.replace(/^www\./,"")).split(".");t.length>3;)t.shift();return 3===t.length&&(t[1].length>2&&t[2].length>2||-1===o.indexOf(t[1])||t[1].length>3&&-1!==s.indexOf(t[2]))&&t.shift(),t.join(".")}function a(e,t,n,r,s,o,i){var a=new Date;a.setDate(a.getDate()+(n||365));var u=[e+"="+t,"expires="+a.toUTCString(),"path="+(i||"/")];r&&u.push("domain="+r),s&&u.push("SameSite="+s),!0===o&&"https:"===location.protocol&&u.push("Secure"),document.cookie=u.join(";")}function u(e,t,n,r,s){void 0===r&&(r=!1);var o=[e+"=","expires=Thu, 01 Jan 1970 00:00:01 GMT","path="+(n||"/")];t&&o.push("domain="+t),!0===r&&o.push("Secure"),s&&o.push("SameSite="+s),document.cookie=o.join(";")}function l(e){return null==e?void 0:e.split(".")[0]}function d(e){var t=null==e?void 0:e.split(".")[2];return t&&(t=t.split("~")[0]),t}function c(e){return null==e?void 0:e.split(".")[1]}function p(e){return null==e?void 0:e.split("~")[1]}function v(e){var t=null==e?void 0:e.split(".")[3];if(t){var n=parseInt(t.split("~")[0],10);if(n)return new Date(n).toISOString()}return null}},87931:function(e,t,n){"use strict";n.r(t),n.d(t,{loadProviderModule:function(){return i}});var r=n(71007),s=n(67885),o=n(25159),i=(e,t)=>n(23410)("./"+e+"/"+e+".js").then(n=>{var i=new n.default(t);return n&&"function"==typeof i.update?i:(console.error(o.a.didomiPrefix+"Module for provider "+e+" does not have an update function."),(0,r.k0)(s.Cb.ERROR_TAG_MANAGER_LOAD,{provider:e,reason:"Module for provider "+e+" does not have an update function."}),null)}).catch(t=>(console.error(o.a.didomiPrefix+"Failed to load tag manager for provider "+e+":",t),(0,r.k0)(s.Cb.ERROR_TAG_MANAGER_LOAD,{provider:e,reason:String(t)}),null))},88517:function(e,t,n){"use strict";n.d(t,{C:function(){return s},J:function(){return r}});var r=(0,n(34576).vP)(null),s=e=>{r.value=e}},90013:function(e,t,n){"use strict";n.d(t,{B:function(){return s},I:function(){return r}});var r=(0,n(34576).vP)(!1),s=e=>r.value=e},90923:function(e,t,n){"use strict";var r;n.d(t,{R:function(){return i}}),function(e){e[e.consentOnly=0]="consentOnly",e[e.consentAndLegitimateInterest=1]="consentAndLegitimateInterest"}(r||(r={}));var s={1:r.consentOnly,2:r.consentAndLegitimateInterest,3:r.consentOnly,4:r.consentOnly,5:r.consentOnly,6:r.consentOnly,7:r.consentAndLegitimateInterest,8:r.consentAndLegitimateInterest,9:r.consentAndLegitimateInterest,10:r.consentAndLegitimateInterest,11:r.consentAndLegitimateInterest},o=n(59113),i=()=>{var e=[];for(var t in o.o){var n=parseInt(t,10);s[n]===r.consentOnly&&e.push(n)}return e}},91083:function(e){function t(e,n){return e||(e=this instanceof t?this:{}),function(n,r){return Object.defineProperties(e,{setMaxListeners:{value:function(t){return r.maxListeners=t,e}},maxListeners:{get:function(){return void 0===r.maxListeners?t.defaultMaxListeners:r.maxListeners}},setLogger:{value:function(t){return r.logger=t,e}},logger:{get:function(){return void 0===r.logger?t.logger:r.logger}},emit:{value:s},on:{value:o},once:{value:function(t,n){return n._once=1,e.on(t,n)}},off:{value:i},addListener:{value:o},removeListener:{value:i},removeAllListeners:{value:i},listeners:{value:function(e){return n[e]?n[e].slice():[]}},listenerTypes:{value:a},listenerCount:{value:function e(t){if(!t){var r=0;return a().forEach(function(t){r+=e(t)}),r}if("object"==typeof t&&t.length)return a().map(function(t){return e(t)});return n[t]&&n[t].length||0}}});function s(t){var r,s;if(!("error"!==t||n.error&&n.error.length))throw arguments[1]instanceof Error?s=arguments[1]:(s=new Error("Unhandled error event: "+arguments[1])).context=arguments[1],s;return!!n[t]&&(r=Array.prototype.slice.call(arguments,1),n[t].slice().forEach(function(n){n._once&&1!==n._once||(n._once++,n.apply(e,r)),n._once&&i(t,n)}),e)}function o(t,r){if(n.newListener&&e.emit("newListener",t,r),n[t]=n[t]||[],n[t].push(r),!n[t].warned){var s=e.maxListeners;s&&s>0&&n[t].length>s&&(n[t].warned=!0,e.logger.warn("Possible EventEmitter memory leak detected for '%s' event. %d listeners added. Use emitter.setMaxListeners() to increase limit.",t,n[t].length),e.logger.trace&&e.logger.trace())}return e}function i(t,r){if(!r&&!n.removeListener)return t?n[t]&&delete n[t]:n={},e;if(!t){for(var o in n)"removeListener"!=o&&i(o);return i("removeListener"),n={},e}if(!n[t])return e;if(!r){for(;n[t].length;)i(t,n[t][n[t].length-1]);return delete n[t],e}var a=n[t].indexOf(r);return a<0||(n[t].splice(a,1),n.removeListener&&s("removeListener",t,r)),e}function a(){return Object.keys(n)}}({},{logger:n&&n.logger,maxListeners:n&&n.maxListeners})}t.EventEmitter=t,t.defaultMaxListeners=10,t.logger="object"==typeof console&&console||{warn:function(){}},t.setLogger=function(e){t.logger=e},e.exports=t},91707:function(e,t,n){"use strict";n.d(t,{o1:function(){return N},fh:function(){return F},J3:function(){return M}});var r={};n.r(r),n.d(r,{actions:function(){return b},initialState:function(){return m}});var s={};n.r(s),n.d(s,{actions:function(){return _},initialState:function(){return y}});var o={};n.r(o),n.d(o,{actions:function(){return S},initialState:function(){return I}});var i={};n.r(i),n.d(i,{actions:function(){return A},initialState:function(){return w}});var a={};n.r(a),n.d(a,{actions:function(){return P},initialState:function(){return C}});var u={};n.r(u),n.d(u,{actions:function(){return E},initialState:function(){return k}});var l={};n.r(l),n.d(l,{actions:function(){return T},initialState:function(){return O}});var d={};n.r(d),n.d(d,{actions:function(){return x},initialState:function(){return L}});var c={};n.r(c),n.d(c,{actions:function(){return U},initialState:function(){return R}});var p=n(96700),v=n.n(p),f=n(67092),h=(n(76447),n(27565),n(50378)),g=n(58168),m={sync:{enabled:!1,delayNotice:!0,timeout:3e3,frequency:86400}},b=()=>({setSyncConfig:(e,t)=>(0,g.A)({},e,{sync:(0,h.zw)(e.sync,t)})}),y={consentNotice:{show:!1,showOnUILoad:!1}},_=()=>({showConsentNotice:e=>({consentNotice:(0,g.A)({},e.consentNotice,{show:!0})}),showConsentNoticeOnLoad:e=>({consentNotice:(0,g.A)({},e.consentNotice,{showOnUILoad:!0})}),hideConsentNotice:e=>({consentNotice:(0,g.A)({},e.consentNotice,{show:!1,showOnUILoad:!1})}),setConsentNoticeConfig:(e,t)=>({consentNotice:(0,h.or)(e.consentNotice,t)})}),I={consentPopup:{enable:!0,open:!1,defaultChoice:void 0,enableAllButtons:!0,showWhenConsentIsMissing:!1,canCloseWhenConsentIsMissing:!0,view:"preferences",preferencesView:"purposes",information:{enable:!1,content:{text:{}}},denyAppliesToLI:!0,controlType:void 0,combineLIAndConsent:!1,content:{instructions:void 0}}},S=()=>({hideConsentPopup:e=>({consentPopup:(0,g.A)({},e.consentPopup,{open:!1})}),showConsentPopup:e=>({consentPopup:(0,g.A)({},e.consentPopup,{open:!0})}),switchViewConsentPopup:(e,t)=>({consentPopup:(0,g.A)({},e.consentPopup,{view:t})}),switchPreferencesViewConsentPopup:(e,t)=>({consentPopup:(0,g.A)({},e.consentPopup,{preferencesView:t})}),setConsentPopupConfig:(e,t)=>({consentPopup:(0,h.or)(e.consentPopup,t)})}),w={website:{ignoreCountry:!1,purposes:[],disabledPurposes:[],vendors:[],customSDK:null,regulations:{gdpr:{enabled:!0,additionalCountries:[]}},google:{additionalConsent:{positive:null,negative:null},fullATP:!1},consentString:void 0,vendorsIdToNumMap:void 0,purposesNumToIdMap:void 0,purposesIdToNumMap:void 0}},A=()=>({setWebsiteConfig:(e,t)=>({website:(0,h.or)(e.website,t)})}),C={iab:{decodedAdditionalConsent:void 0}},P=()=>({setConsentByVendor:(e,t)=>({consentByVendor:t})}),k={ui:{loading:!1,loaded:!1,rendered:!1,module:null}},E=()=>({loadingUI:e=>({ui:(0,g.A)({},e.ui,{loading:!0})}),loadedUI:e=>({ui:(0,g.A)({},e.ui,{loaded:!0,loading:!1})}),renderedUI:e=>({ui:(0,g.A)({},e.ui,{rendered:!0})}),resetUI:e=>({ui:(0,g.A)({},e.ui,{rendered:!1,loading:!1,loaded:!1})})}),O={components:{helpersEnabled:!1,componentsEnabled:!1,version:1}},T=()=>({setComponentsConfig:(e,t)=>({components:(0,h.or)(e.components,t)})}),L={mixedRegulationPreferences:{categories:[],categoriesState:{},purposesState:{},spiPurposesState:{},allSPIUseState:!1,vendors:[],allVendorsState:!0,vendorsState:{}}},x=()=>({setPurposeState:(e,t,n)=>({mixedRegulationPreferences:(0,g.A)({},e.mixedRegulationPreferences,{purposesState:(0,g.A)({},e.mixedRegulationPreferences.purposesState,{[t]:n})})}),setSPIPurposesState:(e,t,n)=>({mixedRegulationPreferences:(0,g.A)({},e.mixedRegulationPreferences,{spiPurposesState:(0,g.A)({},e.mixedRegulationPreferences.spiPurposesState,{[t]:n})})}),setCategoryState:(e,t,n)=>{var r;return{mixedRegulationPreferences:(0,g.A)({},e.mixedRegulationPreferences,{categoriesState:(0,g.A)({},null==(r=e.mixedRegulationPreferences)?void 0:r.categoriesState,{[t]:n})})}},setVendorState:(e,t,n)=>({mixedRegulationPreferences:(0,g.A)({},e.mixedRegulationPreferences,{vendorsState:(0,g.A)({},e.mixedRegulationPreferences.vendorsState,{[t]:n})})}),setAllVendorsState:(e,t)=>({mixedRegulationPreferences:(0,g.A)({},e.mixedRegulationPreferences,{allVendorsState:t})}),setAllSPIUseState:(e,t)=>({mixedRegulationPreferences:(0,g.A)({},e.mixedRegulationPreferences,{allSPIUseState:t})}),setVendors:(e,t)=>({mixedRegulationPreferences:(0,g.A)({},e.mixedRegulationPreferences,{vendors:t})}),setCategories:(e,t)=>({mixedRegulationPreferences:(0,g.A)({},e.mixedRegulationPreferences,{categories:t})})}),R={signature:{dcsUserId:null,value:null}},U=()=>({setSignature:(e,t)=>({signature:{dcsUserId:t.dcsUserId,value:t.signature}}),dropSignature:e=>({signature:(0,g.A)({},e.signature,{value:null})})}),D=[r,s,o,i,a,u,l,d,c],N={};for(var B of D)N[Object.keys(B.initialState)[0]]=B.actions;function V(e){var t={};for(var n of D)(0,h.zw)(t,(0,f.XL)(n.actions,e));return t}var j=function(e){var t=e||function(){var e={};for(var t of D)(0,h.zw)(e,t.initialState);return e}(),n=v()(t,[]);return{store:n,actions:V(n)}}(),M=j.store,F=j.actions},91888:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});var r=n(49049),s=n(34576),o=n(2073),i=(0,s.EW)(()=>{var e,t,n;if(null==(e=o.R.value)||!e.length||null==(t=r.l.value)||!t.length)return[];return null==(n=r.l.value)?void 0:n.filter(e=>{var{id:t}=e;return o.R.value.includes(t)})})},91963:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(34576),s=n(4640),o=n(12321),i=(0,r.EW)(()=>{var e,t=null==o.G||null==(e=o.G.value)?void 0:e.bots;return!!t&&(!1===t.consentRequired&&s.w.value)})},92920:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(58168),s=n(20152),o=n(73412),i=(0,n(34576).EW)(()=>{var e,t,n=e=>{var t;return!(null==(t=o.m.value)||!t[e])},i=null==(e=s.U.value)||null==(t=e.vendors)?void 0:t.custom,a=[];if(i&&Array.isArray(i))for(var u of i){var l=(u.purposeIds||[]).filter(n),d=(u.legIntPurposeIds||[]).filter(n);(l.length>0||d.length>0)&&a.push((0,r.A)({},u,{purposeIds:l,legIntPurposeIds:d,id:"c:"+u.id,namespace:"custom",didomiId:""+u.id}))}return a})},93271:function(e,t,n){"use strict";n.d(t,{bV:function(){return f},oW:function(){return g}});var r=n(33058),s=n(15560),o=n(68307),i=n(78939),a=n(20152),u=n(71007),l=n(67885),d=n(58168),c=n(65606),p={production:"https://sdk.privacy-center.org",staging:"https://sdk.staging.privacy-center.org",preprod:"https://sdk-preprod.privacy-center.org"},v=e=>{var t=(e=>{if(e)return e;if(void 0!==c&&c.env)return p.production||p.staging;return p.staging})(e),n=t;return t.startsWith("//")?n="https:"+t:t.includes("://")||(n="https://"+t),n.replace(/\/+$/,"")+"/tcf/v3/web/vendor-list-texts.js"},f=(0,r.vP)(null),h=null,g=()=>{if(f.value)return Promise.resolve();if(!h){var e;if(!(null==s.q||null==(e=s.q.value)?void 0:e.semVersion))return Promise.resolve();try{var t=(0,i.M)("sdkPath"),n=v(t),{nonce:r}=a.U.value||{};h=((e,t)=>new Promise((n,r)=>{var s=document.createElement("script");s.src=e,s.async=!0,t&&s.setAttribute("nonce",t),s.onload=()=>{if(window.didomiVendorListTexts){var e=window.didomiVendorListTexts;n(e),delete window.didomiVendorListTexts}else r(new Error("No data available"));try{document.head.removeChild(s)}catch(e){}},s.onerror=()=>{r(new Error("Script load failed"));try{document.head.removeChild(s)}catch(e){}},document.head.appendChild(s)}))(n,r).then(e=>{var t;f.value=(t=e)&&t.s&&Array.isArray(t.s)?t.s.map(e=>{var t,n,r,s;return{id:e.i,name:e.n,urls:(null==(t=e.u)?void 0:t.map(e=>(0,d.A)({langId:e.ul,privacy:e.up},e.uli&&{legIntClaim:e.uli})))||[],cookieMaxAgeSeconds:e.cma,usesNonCookieAccess:e.unca,deviceStorageDisclosureUrl:e.dsdu,dataRetention:(0,d.A)({},(null==(n=e.r)?void 0:n.rs)&&{stdRetention:e.r.rs},(null==(r=e.r)?void 0:r.p)&&{purposes:e.r.p},(null==(s=e.r)?void 0:s.sp)&&{specialPurposes:e.r.sp}),dataDeclaration:e.d||[]}}):[],(0,o.Ic)("internal.loaded.iabtexts")}).catch(e=>{(0,u.k0)(l.Cb.ERROR_IAB_VENDOR_TEXTS_LOAD,{reason:String(e)}),f.value=[],(0,o.Ic)("internal.loaded.iabtexts"),h=null})}catch(e){(0,u.k0)(l.Cb.ERROR_IAB_VENDOR_TEXTS_LOAD,{reason:String(e)}),f.value=[],(0,o.Ic)("internal.loaded.iabtexts"),h=null}}return h};(0,o.on)("internal.load.iabtexts",()=>{g()})},94382:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(76638),s=e=>{var t=new r.Mi;return t.set(e.filter(e=>e)),r.XK.encode(r.sH.encode(t))}},94988:function(e,t,n){"use strict";var r,s;n.d(t,{KI:function(){return s},LW:function(){return r}}),function(e){e.CONSTANT_VALUE="constant",e.VENDORS="vendors",e.PURPOSES="purposes",e.GPC="gpc"}(r||(r={})),function(e){e.OPTIN="optin",e.OPTOUT="optout"}(s||(s={}));Object.values(s)},95236:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var r=n(34576),s=n(77396),o=n(92920),i=(0,r.EW)(()=>{var e;return(null==(e=o.$.value)?void 0:e.reduce((e,t)=>{var{id:n,purposeIds:r}=t;return r.length>0&&r.every(e=>s.T.value.includes(e))&&e.push(n),e},[]))||[]})},96700:function(e){"use strict";var t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{if(!(e.length>0&&t.length>0))return e.length>0||!(t.length>0)&&void 0},u=e=>{var t,n,{actions:u}=e;if(o.a.value.hasMadeAnyChoice){var l=o.a.value.byLegalBasis.consent.purposes,d=o.a.value.byLegalBasis.li.purposes,c=o.a.value.byLegalBasis.li.vendors,p={};l.enabled.forEach(e=>{u.setSPIPurposesState(e,!0),p[e]=!0}),l.disabled.forEach(e=>{u.setSPIPurposesState(e,!1),p[e]=!1}),d.enabled.forEach(e=>{u.setPurposeState(e,!0),p[e]=!0}),d.disabled.forEach(e=>{u.setPurposeState(e,!1),p[e]=!1}),c.enabled.forEach(e=>{u.setVendorState(e,!0)}),c.disabled.forEach(e=>{u.setVendorState(e,!1)}),u.setAllSPIUseState(a(l.enabled,l.disabled)),u.setAllVendorsState(a(c.enabled,c.disabled)),null==(t=s.v.value)||null==(n=t.categories)||n.forEach(e=>{var t=(0,i.c)(e);t&&"category"===t.type&&u.setCategoryState(t.id,(0,r.d)(t.children.map(e=>p[e.purposeId])))})}},l=n(41354),d=e=>{var{store:t,consentService:n}=e,{spiPurposesState:r,purposesState:s,vendorsState:o}=t.getState().mixedRegulationPreferences,i=new l.A(n.getUserStatus.bind(n),n.setUserStatus.bind(n),"click");Object.keys(r).forEach(e=>{!0===r[e]?i.enablePurpose(e):i.disablePurpose(e)}),Object.keys(s).forEach(e=>{!0===s[e]?i.enablePurposeLegitimateInterest(e):i.disablePurposeLegitimateInterest(e)}),Object.keys(o).forEach(e=>{!0===o[e]?i.enableVendorLegitimateInterests(e):i.disableVendorLegitimateInterests(e)}),i.commit()},c=n(80029),p=e=>{var{store:t,actions:n,consentService:r}=e;(0,c.S)({actions:n,vendors:t.getState().mixedRegulationPreferences.vendors,categoryOrPurpose:!0,vendor:!0,spi:!0}),d({store:t,consentService:r})}},96831:function(e,t,n){"use strict";n.d(t,{w:function(){return r}});var r=(e,t,n)=>{e[t]?e[t].enabled=e[t].enabled&&n:e[t]={id:t,enabled:n}}},97057:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});class r{constructor(e,t,n){this.store=e,this.actions=t,this.services=n||{}}}},97071:function(e,t,n){"use strict";n.d(t,{$:function(){return r},d:function(){return s}});var r=e=>[...new Set(e)],s=e=>{if(0!==e.length){var[t,...n]=e;return n.every(e=>e===t)?t:null}}},97531:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});var r=n(34576),s=n(66559),o=n(50378),i=(0,r.EW)(()=>(0,o.zu)(s.o.value)||[])},98074:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var r=n(20152),s=(0,n(34576).EW)(()=>{var e;return(null==(e=r.U.value)?void 0:e.disabledPurposes)||[]})},98516:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});var r=n(34576),s=n(77396),o=n(92920),i=(0,r.EW)(()=>{var e;return(null==(e=o.$.value)?void 0:e.reduce((e,t)=>{var{id:n,legIntPurposeIds:r}=t;return r.length>0&&r.every(e=>s.T.value.includes(e))&&e.push(n),e},[]))||[]})},98587:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,s={},o=Object.keys(e);for(r=0;r=0||(s[n]=e[n]);return s}n.d(t,{A:function(){return r}})},98957:function(e,t,n){"use strict";n.d(t,{Y:function(){return s},h:function(){return r}});var r=(0,n(34576).vP)(null),s=e=>{r.value=e}},99124:function(e,t,n){"use strict";n.d(t,{N:function(){return s}});var r=n(9757),s=function(e,t,n,s,o){void 0===o&&(o=!1);var i=((e,t)=>"string"!=typeof e?t?(0,r.PL)(e):(0,r.KX)(e):e)(e,o),a=s.filter(((e,t)=>n=>n.purposeId===e&&n.vendors.includes(t))(i,t));return a.some(e=>["disallow","allow",n].includes(e.restrictionType))}}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return s[e].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=s,i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},i.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var s=Object.create(null);i.r(s);var o={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(function(e){o[e]=function(){return n[e]}});return o.default=function(){return n},i.d(s,o),s},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.f={},i.e=function(e){return Promise.all(Object.keys(i.f).reduce(function(t,n){return i.f[n](e,t),t},[]))},i.u=function(e){return e+".932d9f8c291f98a24970620e3f002281aa30b543.js"},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},r="Didomi:",i.l=function(e,t,s,o){if(n[e])n[e].push(t);else{var a,u;if(void 0!==s)for(var l=document.getElementsByTagName("script"),d=0;d{var t,n,r,s;return null!=(t=P.h.value)&&t.length?null==(n=P.h.value)||null==(r=n.map(e=>({[e.didomiId]:e.id})))||null==(s=r.filter(Boolean))?void 0:s.reduce((t,n)=>(0,e.A)({},t,n),{}):{}}),E=i(83587),O=(e,t,n)=>(null==e?void 0:e[n])||(null==e?void 0:e[null==t?void 0:t[n]]),T=(e,t)=>{var n,r;if(E.o.value)return A.a.value.byLegalBasis[e].purposes[t];var s="consent"===e?"purposes":"purposes_li";return((null==(n=I.II.value)||null==(r=n[s])?void 0:r[t])||[]).filter(e=>!b.T.value.includes(e))},L=(e,t)=>{var n,r;if(E.o.value)return A.a.value.byLegalBasis[e].vendors[t];var s="consent"===e?"vendors":"vendors_li";return(null==(n=I.II.value)||null==(r=n[s])?void 0:r[t])||[]};function x(){return T("consent","enabled")}function R(){return L("consent","enabled")}function U(){return L("consent","disabled")}function D(){return L("li","disabled")}function N(){return T("li","enabled")}function B(){return L("li","enabled")}var V=()=>(0,h.$)([...R(),...U(),...B(),...D(),...m.R.value]),j=()=>{var e=x(),t=(E.o.value?V():R()).filter(t=>{var n=O(g.o.value,k.value,t);return Boolean(n)&&(0,y.Z)((0,l.gi)(n.purposeIds),[...e,...b.T.value])});return{enabled:t,disabled:V().filter(e=>!t.includes(e))}},M=()=>{var e=N(),t=B().filter(t=>{var n=O(g.o.value,k.value,t);return n&&(0,y.Z)((0,l.gi)(n.legIntPurposeIds),[...e,...b.T.value])});return{enabled:t,disabled:V().filter(e=>!t.includes(e))}},F=i(68307),z=(0,C.EW)(()=>{var e,t=null==(e=n.bK.value)?void 0:e.hooks;return t&&"object"==typeof t.functions?t.functions:null}),W=function(e,t){return void 0===t&&(t=void 0),z.value&&z.value[e]&&"function"==typeof z.value[e]?z.value[e]:t},G=i(25159),H=i(12321),K=i(50010),J=i(24746),q=i(52477),Z=(0,C.EW)(()=>{var e,t;return!!(null!=(e=H.G.value)&&e.ignoreConsentBefore&&H.G.value.ignoreConsentBefore{if(!Y.value.has(e)){var t=new Set(Y.value);t.add(e),Y.value=t}},X=i(39015),ee=(0,C.EW)(()=>(0,X.CWTFromCompressedJSON)(JSON.stringify(I.II.value))),te=i(14004),ne=(e,t)=>{if(!te.y.value)return!0;var n=t.byLegalBasis.consent.purposesById[e];return void 0!==n?n:!0===t.byLegalBasis.consent.purposesById.cookies},re=(0,C.EW)(()=>{var e=["essential"];return ne("cookies_analytics",A.a.value)&&e.push("analytics"),ne("cookies_marketing",A.a.value)&&e.push("marketing"),ne("cookies_social",A.a.value)&&e.push("social"),e}),se=()=>{(0,F.Ic)("cookies.enable",re.value)},oe=i(76406),ie=(0,C.vP)(null),ae=e=>{ie.value=e},ue=e=>String(e),le=e=>{var{enabled:t,disabled:n}=e;return{enabled:Array.isArray(t)?t:[t],disabled:Array.isArray(n)?n:[n]}},de=(e,t)=>{var n=new Set;return e.filter(e=>{var r=ue(e);return!(n.has(r)||!t(e))&&(n.add(r),!0)})},ce=i(73996),pe=i(58975);class ve extends v.A{getUserConsentStatusForAllPurposesByVendor(e){e=parseInt(e,10)||e;var t=(0,l.Jt)(this.store.getState(),"consentByVendor."+e+".consentToAllPurposes");if("boolean"==typeof t)return t}getObservableOnUserConsentStatusForAllPurposesByVendor(e){var t=new p(null,this.getUserConsentStatusForAllPurposesByVendor(e)),n=(0,F.ew)();return n>=(0,F.mW)()&&(0,F.kj)(n+1),(0,F.on)("internal.consent.changed",()=>{t.next(this.getUserConsentStatusForAllPurposesByVendor(e))}),t.distinctUntilChanged()}getUserStatusForVendor(e){var t,n=null==(t=g.o.value)?void 0:t[e];if(n){var r=!0,s=!0;return Array.isArray(n.legIntPurposeIds)&&n.legIntPurposeIds.length>0&&(r=A.a.value.byLegalBasis.li.vendorsById[n.id]),Array.isArray(n.purposeIds)&&n.purposeIds.length>0&&(s=A.a.value.byLegalBasis.consent.vendorsById[e]),E.o.value?r:r&&s}}getUserStatusForVendorAndLinkedPurposes(e){var t,n,r,s,o,i,a,u,l,d,c,p,v,f,h,m,b,y=null==(t=g.o.value)?void 0:t[e],_=W("isVendorEnabled");if(_)return _({vendor:y,enabledPurposes:null==(n=I.II.value)||null==(r=n.purposes)?void 0:r.enabled,disabledPurposes:null==(s=I.II.value)||null==(o=s.purposes)?void 0:o.disabled,enabledLIPurposes:null==(i=I.II.value)||null==(a=i.purposes_li)?void 0:a.enabled,disabledLIPurposes:null==(u=I.II.value)||null==(l=u.purposes_li)?void 0:l.disabled,enabledVendors:null==(d=I.II.value)||null==(c=d.vendors)?void 0:c.enabled,disabledVendors:null==(p=I.II.value)||null==(v=p.vendors)?void 0:v.disabled,enabledLIVendors:null==(f=I.II.value)||null==(h=f.vendors_li)?void 0:h.enabled,disabledLIVendors:null==(m=I.II.value)||null==(b=m.vendors_li)?void 0:b.disabled});if(y){var S=!0,w=!0;return Array.isArray(y.legIntPurposeIds)&&y.legIntPurposeIds.length>0&&(S=y.legIntPurposeIds.reduce((e,t)=>!1===e?e:A.a.value.byLegalBasis.li.purposesById[t],!0)),Array.isArray(y.purposeIds)&&y.purposeIds.length>0&&(w=y.purposeIds.reduce((e,t)=>!1===e?e:A.a.value.byLegalBasis.consent.purposesById[t],!0)),this.getUserStatusForVendor(e)&&S&&w}}getUndefinedPurposes(){var e,t,n,r,s=[...null==(e=I.II.value)||null==(t=e.purposes)?void 0:t.enabled,...null==(n=I.II.value)||null==(r=n.purposes)?void 0:r.disabled];return w.t.value.purposeIdsBasedOnConsent.filter(e=>-1===s.indexOf(e))}setUserConsentStatusDeprecated(e,t,n){t=Array.isArray(t)?t:[t],n=Array.isArray(n)?n:[n];var r=new d.A(this.getUserStatus.bind(this),this.setUserStatus.bind(this));!0===e?(r.enablePurposes(...t),r.enableVendors(...n)):(r.enablePurposes(...this.getUndefinedPurposes()),r.disableVendors(...n)),r.commit(),this.services.NoticeService.hide()}setUserConsentStatus(t,n,r,s,o,i,a,u,d,c,p,v){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===s&&(s=[]),void 0===o&&(o=[]),void 0===i&&(i=[]),void 0===a&&(a=[]),void 0===u&&(u=[]);var f=I.II.value,h=(e=>{var{statusLists:t,scope:n}=e,r=le(t.purposes),s=le(t.purposes_li),o=le(t.vendors),i=le(t.vendors_li),a=new Set(n.essentialPurposeIds.map(ue)),u=new Set(n.optInEssentialPurposesOperatorIds.map(ue)),l=new Set(n.optOutEssentialPurposesOperatorIds.map(ue)),d=e=>!a.has(ue(e));return{purposes:{enabled:de(r.enabled,d),disabled:de(r.disabled,d)},purposes_li:{enabled:de(s.enabled,d),disabled:de(s.disabled,d)},vendors:n.collectsOperatorConsent?{enabled:de([...o.enabled,...n.optInEssentialPurposesOperatorIds],e=>{var t,r=n.vendorsById[ue(e)];return!r||(null==(t=r.purposeIds)?void 0:t.length)>0}),disabled:de(o.disabled,e=>!u.has(ue(e)))}:{enabled:[],disabled:[]},vendors_li:{enabled:de([...i.enabled,...n.optOutEssentialPurposesOperatorIds],()=>!0),disabled:de(i.disabled,e=>!l.has(ue(e)))}}})({statusLists:{purposes:{enabled:t,disabled:n},purposes_li:{enabled:o,disabled:i},vendors:{enabled:r,disabled:s},vendors_li:{enabled:a,disabled:u}},scope:{essentialPurposeIds:b.T.value,optInEssentialPurposesOperatorIds:ce.q.value.optInEssentialPurposesOperatorIds,optOutEssentialPurposesOperatorIds:ce.q.value.optOutEssentialPurposesOperatorIds,vendorsById:g.o.value||{},collectsOperatorConsent:Object.values(pe.B.value.optin.collect.operators).some(e=>e.enable)}}),m=(0,e.A)({},f,h,{version:G.a.defaultTCFVersion},d&&{created:d},c&&{updated:c}),y=!!d||!!c;(y||Z.value||!(0,l.bD)(f,m))&&(this.actions.dropSignature(),ae(v||null),m=this.services.StorageService.setTokenToStorages(m,!y),this.sendEvents(m,!1,p)),this.removeScrollListener(window.scrollListener)}sendEvents(e,t,n){void 0===t&&(t=!1);var{purposes:r,purposes_li:s,vendors:o,vendors_li:i,created:a,updated:u,dns:l}=e;(0,F.Ic)("internal.consent.updated"),"sync"!==n&&this.services.EventsService.sendConsentGiven({purposes:r,vendors:o,created:a,updated:u,dns:!0===l||void 0,from_euconsent:t,action:"string"==typeof n?n:void 0,purposes_li:s,vendors_li:i},"navigate"===n),(0,F.Ic)("internal.consent.changed"),(0,F.Ic)("consent.changed",{get consentToken(){return Q("consent-web-token"),ee.value},fromEUConsent:t,action:n}),this.setBrowserCookieState(e.purposes.enabled)}removeScrollListener(e){"function"==typeof e&&-1!==String(e).indexOf("Didomi.setUserAgreeToAll()")&&window.removeEventListener("scroll",e)}setBrowserCookieState(e){e.some(e=>0===e.indexOf("cookies"))&&se()}getUserStatus(){var e;return"none"===(null==(e=$.r.value)?void 0:e.name)?(0,l.Go)(this.getUserStatusForNoneRegulation()):(0,l.Go)((()=>{var e,t,n,r=I.II.value;return{purposes:{consent:{enabled:x(),disabled:T("consent","disabled")},legitimate_interest:{enabled:N(),disabled:T("li","disabled")},global:(n=(0,h.$)([...x(),...N(),...b.T.value]),{enabled:n,disabled:w.t.value.purposeIds.filter(e=>!n.includes(e))}),essential:b.T.value},vendors:{consent:{enabled:R(),disabled:U()},legitimate_interest:{enabled:B(),disabled:D()},global:(e=[...x(),...N(),...b.T.value],t=(0,h.$)([...R(),...B()]).filter(t=>{var n=O(g.o.value,k.value,t);return n&&(0,y.Z)([...(0,l.gi)(n.purposeIds),...(0,l.gi)(n.legIntPurposeIds)],e)}),{enabled:t,disabled:V().filter(e=>!t.includes(e))}),global_consent:j(),global_li:M()},user_id:r.user_id,created:r.created,updated:r.updated,consent_string:_.M.value,addtl_consent:S.J.value}})(this.store.getState()))}getUserStatusForNoneRegulation(){var e,t,n,r=w.t.value.purposeIds;return{purposes:{consent:{enabled:w.t.value.purposeIdsBasedOnConsent,disabled:[]},legitimate_interest:{enabled:w.t.value.purposeIdsBasedOnLI,disabled:[]},global:r,essential:b.T.value},vendors:{consent:{enabled:oe.H.value.operatorIdsWithAtLeastOneOptinPurpose,disabled:[]},legitimate_interest:{enabled:oe.H.value.operatorIdsWithAtLeastOneOptoutPurpose,disabled:[]},global:m.R.value,global_consent:oe.H.value.operatorIdsWithAtLeastOneOptinPurpose,global_li:oe.H.value.operatorIdsWithAtLeastOneOptoutPurpose},user_id:null==(e=I.II.value)?void 0:e.user_id,created:null==(t=I.II.value)?void 0:t.created,updated:null==(n=I.II.value)?void 0:n.updated,consent_string:_.M.value,addtl_consent:S.J.value}}setCurrentUserStatus(e){var t,n=null==(t=$.r.value)?void 0:t.name,r=(0,l.Go)(I.II.value);if("none"===n)return!1;var s=w.t.value.purposeIdsBasedOnLI,o=w.t.value.purposeIdsBasedOnConsent,i=b.T.value,a=K.C.value,u={};for(var d of Object.keys(a))u[a[d]]=d;var c=oe.H.value.operatorIdsWithAtLeastOneOptinPurpose,p=oe.H.value.operatorIdsWithAtLeastOneOptoutPurpose;if(!(0,J.q7)(e.vendors,m.R.value,u))return!1;if(!(0,J.q7)(e.purposes,[...o,...s,...i]))return!1;var v=(0,J.jh)({globalUserStatus:e.vendors,includeIds:c,reversedIdsToDidomiIdsMap:u}),f=(0,J.jh)({globalUserStatus:e.vendors,includeIds:p,reversedIdsToDidomiIdsMap:u}),h=(0,J.jh)({globalUserStatus:e.purposes,includeIds:o,parseNumIds:!1}),g=(0,J.jh)({globalUserStatus:e.purposes,includeIds:s,parseNumIds:!1}),y=r.created,_=(new Date).toISOString(),S=e.action||"external";return this.setUserConsentStatus(h.enabled,h.disabled,v.enabled,v.disabled,g.enabled,g.disabled,f.enabled,f.disabled,y,_,S),this.services.WebsiteService.handleUserStatusUpdated(),(0,J.y3)(I.II.value,r)}setUserStatusForAll(e){var{purposesConsentStatus:t,purposesLIStatus:n,vendorsConsentStatus:r,vendorsLIStatus:s,created:o,updated:i,action:a}=e,u=b.T.value,d=w.t.value.purposeIdsBasedOnConsent||[],c=w.t.value.purposeIdsBasedOnLI,p=m.R.value,v=oe.H.value.operatorIdsWithAtLeastOneOptoutPurpose;if(0!==[...d,...v].length&&0!==p.length||0!==u.length){var f={};t?((0,l.hZ)(f,"purposes.consent.enabled",d),(0,l.hZ)(f,"purposes.consent.disabled",[])):((0,l.hZ)(f,"purposes.consent.enabled",[]),(0,l.hZ)(f,"purposes.consent.disabled",d)),n?((0,l.hZ)(f,"purposes.legitimate_interest.enabled",c),(0,l.hZ)(f,"purposes.legitimate_interest.disabled",[])):((0,l.hZ)(f,"purposes.legitimate_interest.enabled",[]),(0,l.hZ)(f,"purposes.legitimate_interest.disabled",c)),r?((0,l.hZ)(f,"vendors.consent.enabled",p),(0,l.hZ)(f,"vendors.consent.disabled",[])):((0,l.hZ)(f,"vendors.consent.enabled",[]),(0,l.hZ)(f,"vendors.consent.disabled",p)),s?((0,l.hZ)(f,"vendors.legitimate_interest.enabled",v),(0,l.hZ)(f,"vendors.legitimate_interest.disabled",[])):((0,l.hZ)(f,"vendors.legitimate_interest.enabled",[]),(0,l.hZ)(f,"vendors.legitimate_interest.disabled",v)),(0,l.hZ)(f,"created",o),(0,l.hZ)(f,"updated",i),(0,l.hZ)(f,"action",a),this.setUserStatus(f)}}setUserStatus(e){this.setUserConsentStatus((0,l.Jt)(e,"purposes.consent.enabled",[]),(0,l.Jt)(e,"purposes.consent.disabled",[]),(0,l.Jt)(e,"vendors.consent.enabled",[]),(0,l.Jt)(e,"vendors.consent.disabled",[]),(0,l.Jt)(e,"purposes.legitimate_interest.enabled",[]),(0,l.Jt)(e,"purposes.legitimate_interest.disabled",[]),(0,l.Jt)(e,"vendors.legitimate_interest.enabled",[]),(0,l.Jt)(e,"vendors.legitimate_interest.disabled",[]),(0,l.Jt)(e,"created"),(0,l.Jt)(e,"updated"),(0,l.Jt)(e,"action","external"),(0,l.Jt)(e,"precomputedTcfString")),this.services.WebsiteService.handleUserStatusUpdated()}loadExternalConsent(){var e=this;return(0,t.A)(function*(){var t=H.G.value.externalConsent;if(t.enabled&&t.value){var n,r,s=t.value;if("function"==typeof t.value)try{s=yield t.value()}catch(e){console.error(G.a.didomiPrefix+"Unable to resolve external consent",e)}if(s&&"object"==typeof s)if(null!=(n=s)&&n.purposes||null!=(r=s)&&r.vendors)e.setUserStatus(s);else{var{disabledPurposes:o,disabledVendors:i,enabledPurposes:a,enabledVendors:u,enabledPurposesLegitimateInterests:l,disabledPurposesLegitimateInterests:d,enabledVendorsLegitimateInterests:c,disabledVendorsLegitimateInterests:p,action:v}=s;e.setUserConsentStatus(a,o,u,i,l,d,c,p,void 0,void 0,v)}}})()}}ve.Purposes=f.eL,ve.prototype.Purposes=f.eL;var fe=i(34905),he=i(1081),ge=i(58623),me=(0,C.EW)(()=>{var e,t,s,o={sampleSizes:{},template:{source:{type:"sdk-web",domain:location.host,environment:r.b.value.environment},user:{agent:navigator.userAgent,id_type:"uuid",regs:[]}}},i=null==(e=n.bK.value)?void 0:e.events;null!=i&&i.source&&("string"==typeof i.source.type&&(o.template.source.type=i.source.type),"string"==typeof i.source.domain&&(o.template.source.domain=i.source.domain)),!1===(null==i?void 0:i.enabled)&&(o.muteAPIEvents=!0);var a=(null==(t=r.b.value)||null==(s=t.events)?void 0:s.sampleSizes)||{};for(var u of Object.keys(a))null!=i&&i.sampleSizes&&"number"==typeof i.sampleSizes[u]?o.sampleSizes[u]=i.sampleSizes[u]:o.sampleSizes[u]=a[u];if(E.o.value){var l={type:ge.x.value.isSupportedByBrowser?"gpc":"none"};ge.x.value.isEnabled&&(l.notice_action=ge.x.value.shouldShowNotice?"shown":"hidden",l.status=ge.x.value.isUserOptedOut),o.template.source.privacy_control=l}return o}),be=(0,he.Mz)(e=>{var t;return null==(t=e.website)?void 0:t.customDomain},()=>{var e,t,n;return null==(e=me.value)||null==(t=e.template)||null==(n=t.source)?void 0:n.domain},(e,t)=>e||t||location.host||"com.app.generic"),ye=i(24408),_e=i(98957),Ie=i(35094),Se=i(75155),we=i(15560),Ae=i(86923),Ce=i(20152),Pe=(0,C.EW)(()=>{var e,t=null==(e=Ce.U.value)?void 0:e.providerKey;if(t)return t;var n=document.getElementById("spcloader");if(n&&n.getAttribute){var r=n.getAttribute("data-provider");if("string"==typeof r&&r.length>0)return r}}),ke=(0,C.EW)(()=>{var t,r,s,o=null==(t=n.bK.value)?void 0:t.experiment;if(!o)return null;var i=o&&o.id&&o.config,a=o&&"number"==typeof o.size&&o.size>=0&&o.size<=1,u=!1;if(o&&(o.group&&("string"!=typeof o.group||"test"!==o.group&&"control"!==o.group)||(u=!0)),i&&a&&u){o.config.experiment&&delete o.config.experiment;var l={config:o.config,id:o.id,size:o.size,startDate:o.startDate};o.startDate?(0,q.u)(o.startDate)instanceof Date?(o.group&&(l.group=o.group),s=l):(console.log(G.a.didomiPrefix+"The test start date must be a date formatted as an ISO-8601 string"),s=null):(o.group&&(l.group=o.group),s=l)}else i?a?u||console.log(G.a.didomiPrefix+'The experiment group must be "control" or "test"'):console.log(G.a.didomiPrefix+"The test group size must be between 0 and 1"):console.log(G.a.didomiPrefix+"Experiment requires an ID, a size and a config to run"),s=null;var{id:d,size:c,startDate:p,group:v}=null!=(r=s)?r:{};if(!d||"number"!=typeof c)return null;if(!((e,t)=>{if(!e)return!0;var n=(0,q.u)(e);if(!n)return!0;var r=(0,q.u)(t);return r instanceof Date&&n.getTime()<=r.getTime()})(p,I.II.value.created))return null;var f,h,g=v||(f=I.II.value.user_id,h=c,f&&36===f.length?0===h?"control":parseInt(f.slice(-5),16)%1e3<1e3*h?"test":"control":null);return g&&g?(0,e.A)({},s,{group:g}):null}),Ee=(0,C.EW)(()=>{var{value:e}=ke;return e&&e.id?{group:e.group,id:e.id,size:e.size,startDate:e.startDate}:null}),Oe=i(72177),Te=i(72714),Le=(e=>(e.NO_CHOICE="no_choice",e.ACCEPTED="accepted",e.REJECTED="rejected",e.PARTIAL="partial",e.EXPIRED="expired",e))(Le||{}),xe={Age:{UNDER_THRESHOLD:"age_under_threshold",OVER_THRESHOLD:"age_over_threshold",MISSING:"age_missing"},Territory:{IN_LIST:"geo_in_list",NOT_IN_LIST:"geo_not_in_list",UNKNOWN:"geo_unknown"},GPC:{PRESENT:"gpc_present",ABSENT:"gpc_absent"},Login:{LOGGED_IN:"logged_in",LOGGED_OUT:"logged_out"},Choice:{NO_CHOICE:"no_choice",ACCEPTED:"accepted",REJECTED:"rejected",PARTIAL:"partial",EXPIRED:"expired"},URL:{MATCHES:"path_matches",NOT_MATCHES:"path_not_matches"},Page:{CATEGORY:"page_category"},CustomAttribute:{CONTAINS:"custom_attribute_contains",MATCHES:"custom_attribute_matches"}},Re=(e,t)=>!!t&&e.has(t),Ue=(e,t)=>e.customAttributes&&Object.prototype.hasOwnProperty.call(e.customAttributes,t)?e.customAttributes[t]:void 0,De=(e,t)=>!!t&&e.some(e=>t.includes(e)),Ne={[xe.Age.UNDER_THRESHOLD]:(e,t)=>{var n=t;return void 0!==e.age&&e.age{var n=t;return void 0!==e.age&&e.age>=n.age_threshold},[xe.Age.MISSING]:e=>void 0===e.age,[xe.Territory.IN_LIST]:(e,t)=>Re(t.territories,e.country),[xe.Territory.NOT_IN_LIST]:(e,t)=>!!e.country&&!Re(t.territories,e.country),[xe.Territory.UNKNOWN]:e=>!e.country,[xe.GPC.PRESENT]:e=>!0===e.gpcSignal,[xe.GPC.ABSENT]:e=>!e.gpcSignal,[xe.Login.LOGGED_IN]:e=>!0===e.isAuthenticated,[xe.Login.LOGGED_OUT]:e=>!e.isAuthenticated,[xe.Choice.NO_CHOICE]:e=>e.consentStatus===Le.NO_CHOICE,[xe.Choice.ACCEPTED]:e=>e.consentStatus===Le.ACCEPTED,[xe.Choice.REJECTED]:e=>e.consentStatus===Le.REJECTED,[xe.Choice.PARTIAL]:e=>e.consentStatus===Le.PARTIAL,[xe.Choice.EXPIRED]:e=>e.consentStatus===Le.EXPIRED,[xe.URL.MATCHES]:(e,t)=>De(t.patterns,e.currentUrl),[xe.URL.NOT_MATCHES]:(e,t)=>!!e.currentUrl&&!De(t.patterns,e.currentUrl),[xe.Page.CATEGORY]:(e,t)=>Re(t.categories,e.pageCategory),[xe.CustomAttribute.CONTAINS]:(e,t)=>{var n,r=t,s=Ue(e,r.attribute);return null!=(n=null==s?void 0:s.includes(r.value))&&n},[xe.CustomAttribute.MATCHES]:(e,t)=>{var n=t,r=Ue(e,n.attribute);return void 0!==r&&null!==n.regex&&(n.regex.lastIndex=0,n.regex.test(r))}},Be=(e,t)=>{try{return new RegExp(e,t)}catch(e){return null}},Ve=e=>Array.isArray(e)?new Set(e):new Set,je=(e,t,n)=>{if("string"!=typeof e)return null;var r="string"==typeof t?t:void 0,s=Be(e,r);return null===s&&console.warn("[RulesEngine] Invalid regex in rule "+n+": /"+e+"/"+(null!=r?r:"")+". Scenario will always fail."),s},Me=t=>n=>(0,e.A)({},n,{[t]:Ve(n[t])}),Fe={[xe.Territory.IN_LIST]:Me("territories"),[xe.Territory.NOT_IN_LIST]:Me("territories"),[xe.Page.CATEGORY]:Me("categories"),[xe.CustomAttribute.MATCHES]:(t,n)=>(0,e.A)({},t,{regex:je(t.pattern,t.flags,n)})},ze=(e,t,n)=>{if(t){var r=Fe[e];return r?r(t,n):t}};xe.CustomAttribute.CONTAINS,xe.CustomAttribute.MATCHES;var We=e=>{var t=[];for(var n of Object.values(e))"string"==typeof n?t.push(n):n&&"object"==typeof n&&t.push(...We(n));return t};new Set(We(xe)),xe.Age.UNDER_THRESHOLD,xe.Age.OVER_THRESHOLD,xe.Territory.IN_LIST,xe.Territory.NOT_IN_LIST,xe.URL.MATCHES,xe.URL.NOT_MATCHES,xe.Page.CATEGORY,xe.CustomAttribute.CONTAINS,xe.CustomAttribute.MATCHES,xe.Age.UNDER_THRESHOLD,xe.Age.OVER_THRESHOLD,xe.Territory.IN_LIST,xe.Territory.NOT_IN_LIST,xe.URL.MATCHES,xe.URL.NOT_MATCHES,xe.Page.CATEGORY,xe.CustomAttribute.CONTAINS,xe.CustomAttribute.MATCHES,xe.CustomAttribute.CONTAINS,xe.CustomAttribute.MATCHES,xe.GPC.PRESENT,xe.GPC.ABSENT,xe.Login.LOGGED_IN,xe.Login.LOGGED_OUT,new Set(Object.values(xe.Choice));var Ge=(e,t)=>{var n;if(!e)return Le.NO_CHOICE;var r=(null==t||null==(n=t.consent)?void 0:n.purposes)||{enabled:[],disabled:[]},s=r.enabled.length>0,o=r.disabled.length>0;return s&&o?Le.PARTIAL:s&&!o?Le.ACCEPTED:!s&&o?Le.REJECTED:Le.NO_CHOICE},He=(e,t)=>{if(e)return t?e+"_"+t:e},Ke=()=>{var e,t,r,s,o=_e.h.value,i=A.a.value,a=n.bK.value;return{country:He(null==o?void 0:o.country,null==o?void 0:o.region),gpcSignal:!0===navigator.globalPrivacyControl,isAuthenticated:void 0!==(null==a||null==(e=a.user)?void 0:e.organizationUserId),consentStatus:Ge(null==i?void 0:i.hasMadeAnyChoice,null==i?void 0:i.byLegalBasis),currentUrl:"undefined"!=typeof window?window.location.href:void 0,age:null==a||null==(t=a.user)?void 0:t.age,pageCategory:null==a?void 0:a.pageCategory,customAttributes:null==a||null==(r=a.user)||null==(s=r.userContext)?void 0:s.attributes}},Je=new Set([xe.CustomAttribute.CONTAINS,xe.CustomAttribute.MATCHES]),qe=e=>{var t,n,{scenarioId:r,parameters:s}=e;if(Je.has(r))return(null==s?void 0:s.attribute)+":"+(null!=(t=null!=(n=null==s?void 0:s.value)?n:null==s?void 0:s.pattern)?t:"");var o=s?Object.values(s):[];return r+":"+(o.length>0?o.join(","):"true")},Ze=(0,C.vP)({initialized:!1,selectedWidgetId:null,matchedRuleId:null,isManualTrigger:!1}),$e=null,Ye=null,Qe=t=>{if(t&&t.rules)try{$e=(e=>{var t=e.rules.map(e=>{var t,n=e.scenarios.map(t=>{var n=Ne[t.scenarioId];return n?{scenarioId:t.scenarioId,params:ze(t.scenarioId,t.parameters,e.id),matcher:n}:(console.warn("[RulesEngine] Unknown scenario ID: "+t.scenarioId+". Rule "+e.id+" will always fail."),{scenarioId:t.scenarioId,params:{},matcher:()=>!1})});return{id:e.id,targetWidgetId:e.targetWidgetId,scenarios:n,priority:e.priority,triggerMode:null!=(t=e.triggerMode)?t:"auto"}});return{evaluate:n=>{var r,s,o=null;for(var i of t)0!==i.scenarios.length&&i.scenarios.every(e=>e.matcher(n,e.params))&&(null===o||i.priority{var e,t;if(!Ye)return null;var n=Ze.value.selectedWidgetId||Ye.defaultWidgetId;if(!n)return console.warn(G.a.didomiPrefix+"No matching rule and no default widget"),null;var r=null==(e=Ye.widgets)?void 0:e[n],s=Ze.value.isManualTrigger,o=null!=(t=Ze.value.matchedRuleId)?t:null;return r?{widgetId:n,widgetDef:r,isManualTrigger:s,ruleId:o}:(console.error(G.a.didomiPrefix+"Widget '"+n+"' not found in catalog"),null)},et=()=>{var e,t=Ze.value.matchedRuleId;if(!t||!Ye)return[];var n,r=null==(e=Ye.rules)?void 0:e.find(e=>e.id===t);return void 0===(n=null==r?void 0:r.scenarios)&&(n=[]),n.filter(e=>{var{scenarioId:t}=e;return t}).map(qe)},tt=function(t,n,r){void 0===n&&(n=null),void 0===r&&(r=!1),Ze.value=(0,e.A)({},Ze.value,{selectedWidgetId:t,matchedRuleId:n,isManualTrigger:r})},nt=e=>{var t;if(!Ye||!e)return null;var n=null==(t=Ye.widgets)?void 0:t[e];return n?{widgetId:e,widgetDef:n,isManualTrigger:!1,ruleId:null}:(console.error(G.a.didomiPrefix+"Widget '"+e+"' not found in catalog"),null)},rt=()=>{var e;return Object.keys((null==(e=Ye)?void 0:e.widgets)||{}).length>0},st=function(t){var n;if(void 0===t&&(t={}),!rt())return console.warn(G.a.didomiPrefix+"No widgets are configured"),null;if(!$e)return console.warn(G.a.didomiPrefix+"Engine not initialized, call initRulesEngine first"),null;var r=(0,e.A)({},Ke(),t);return null!=(n=$e.evaluate(r))?n:null};class ot extends v.A{constructor(e,t,n){super(e,t,n),this.sentEvents={}}configure(e){window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"preferences.shownpurposes",listener:this.sendPreferencesPurposesShown.bind(this)},{event:"preferences.shownvendors",listener:this.sendPreferencesVendorsShown.bind(this)},{event:"preferences.clickpurposeagree",listener:this.sendPreferencesPurposeStatusChanged.bind(this)},{event:"preferences.clickpurposedisagree",listener:this.sendPreferencesPurposeStatusChanged.bind(this)},{event:"preferences.clickvendoragree",listener:this.sendPreferencesVendorStatusChanged.bind(this)},{event:"preferences.clickvendordisagree",listener:this.sendPreferencesVendorStatusChanged.bind(this)},{event:"preferences.shownpersonaldatatypes",listener:this.sendPreferencesShownPersonalDataTypes.bind(this)},{event:"preferences.clickspiagree",listener:this.sendPreferencesSPIChanged.bind(this)},{event:"preferences.clickspidisagree",listener:this.sendPreferencesSPIChanged.bind(this)})}customizeEvent(t,r){var s,o,i,a,u,d,{includeToken:c=!0,includeUserId:p=!1,organizationUserId:v=null,authorizationParameters:f={},includeSignature:h=!1}=void 0===r?{}:r;Pe.value&&(0,l.hZ)(t,"source.provider",Pe.value),ye.K.value&&(0,l.hZ)(t,"source.key",ye.K.value);var g=null==(s=_e.h.value)?void 0:s.country;g&&(0,l.hZ)(t,"user.country",g);var m=null==(o=_e.h.value)?void 0:o.region;m&&(0,l.hZ)(t,"user.region",m);var b=[],y=null==(i=$.r.value)?void 0:i.name;y&&b.push(y),(0,l.hZ)(t,"user.regs",b);var S=(0,l.Go)(I.II.value);p&&S.user_id&&(0,l.hZ)(t,"user.id",S.user_id),v&&(0,l.hZ)(t,"user.organization_user_id",v),(0,l.hZ)(t,"user",(0,e.A)({},t.user,f)),c&&S&&Object.keys(S).length>0&&((0,l.hZ)(t,"user.token",S),p||(0,l.hZ)(t,"user.token.user_id",null));var w,A,C=Ee.value;(C&&(0,l.Kg)(C.group)&&(0,l.Kg)(C.id)&&(0,l.Et)(C.size)&&(t.experiment=C),Ae.X.value&&((0,l.hZ)(t,"user.tcfcs",_.M.value),(0,l.hZ)(t,"user.tcfv",we.q.value.majorVersion)),Te.z.value&&(0,l.hZ)(t,"user.gpp_string",Te.z.value),null!=(a=Ce.U.value)&&a.deploymentId)&&(0,l.hZ)(t,"source.deployment_id",null==(w=Ce.U.value)?void 0:w.deploymentId);null!=(u=n.bK.value)&&u.id&&(0,l.hZ)(t,"source.sdk_config_id",null==(A=n.bK.value)?void 0:A.id);var P=be(this.store.getState());if(P&&(0,l.hZ)(t,"source.domain",P),h&&null!=(d=Se.O.value)&&d.signatureEnabled){var k=this.services.SignatureService.getSignatureParams();k&&((0,l.hZ)(t,"user.dcs",k.dcs),(0,l.hZ)(t,"user.dcs_user",k.dcsUser))}return t}send(t,n,s,o,i,a){var u,d;if(void 0===n&&(n=null),void 0===s&&(s=null),void 0===o&&(o=!1),void 0===i&&(i=!0),void 0===a&&(a=2),null!=(u=me.value)&&u.muteAPIEvents)return null;if(!(0,l.zu)(this.eventTypes).map(e=>e.type).includes(t))throw new Error("Invalid event type "+t);if("number"==typeof s){if(!function(e,t,n){if(void 0===n&&(n=2),!e||36!==e.length||!t||"number"!=typeof t||t<0||t>1)return!1;if(1===t)return!0;var r=Math.pow(16,n)-1;return parseInt(e.slice(-n),16)/r<=t}(this.services.StorageService.getIdFromConsentToken(),s,a))return null}else s=1;var c=[],p=[{organizationUserId:null==(d=H.G.value)?void 0:d.organizationUserId,authorizationParameters:this.services.SyncService.getAuthorizationParameters(),includeUserId:!0}];if("consent.given"===t){var v,f=null==(v=H.G.value)?void 0:v.synchronizedUsers;null==f||f.forEach(e=>{p.push({parameters:{action:"multiple-IDs"},organizationUserId:e.organizationUserId,authorizationParameters:this.services.SyncService.getMappedAuthorizationParameters(e)})}),p[0].includeSignature=!0}var h=t===this.eventTypes.consentAsked.type||t===this.eventTypes.consentGiven.type?Xe():null,g=h?et():null;return p.forEach(r=>{var i,a,u,d,p,v=this.customizeEvent((0,l.Go)(null==(i=me.value)?void 0:i.template),r);(v.type=t,v.rate=s,n&&(v.parameters=n),r.parameters&&(v.parameters=(0,l.or)(v.parameters,r.parameters)),h)&&((0,l.hZ)(v,"source.widget",{widget_type:null!=(a=null==(u=h.widgetDef)?void 0:u.type)?a:null,widget_type_id:h.widgetId,widget_version_id:null!=(d=null==(p=h.widgetDef)?void 0:p.versionId)?d:null}),v.parameters=(0,e.A)({},v.parameters,{rules:g}));(0,l.hZ)(v,"source.beacon",!1),!0===o&&"function"==typeof navigator.sendBeacon&&(0,l.hZ)(v,"source.beacon",!0),c.push(v)}),!0===o&&"function"==typeof navigator.sendBeacon?navigator.sendBeacon((0,r.M)("apiPath")+"/events?data_format=json",JSON.stringify(c)):fe.ajax({method:"POST",url:(0,r.M)("apiPath")+"/events",body:JSON.stringify(c),headers:{"Content-Type":"application/json"},cors:!0},(e,n)=>this.processEventResponse({code:e,responseText:n,type:t})),c}processEventResponse(e){var{code:t,responseText:n,type:r}=e;if(201===t&&n){var s=JSON.parse(n);if(Array.isArray(s)){var o=s.find(e=>e.dcs&&e.dcs_user&&e.signature);o&&this.services.SignatureService.updateCookie({dcsUserId:o.dcs_user,signature:o.signature,trigger:"consent-changed"})}}else{var i,a=(null==(i=(0,l.zu)(this.eventTypes).find(e=>e.type===r))?void 0:i.errorName)||"createEvent";(0,F.KU)(t,a)}}sendPageview(t){void 0===t&&(t=!1);var n=Ie.M.value&&sessionStorage.getItem("didomi-page-session-active");if(void 0===this.sentEvents[this.eventTypes.pageview.type]&&!n){var r,s,o=null;Y.value.size>0&&(o=(0,e.A)({},o||{},{features:[...Y.value]})),Oe.A.value&&(o=(0,e.A)({},o||{},{gcm_error:Oe.A.value})),this.send(this.eventTypes.pageview.type,o,null==(r=me.value)||null==(s=r.sampleSizes)?void 0:s.pageview,t,!0),this.sentEvents[this.eventTypes.pageview.type]=!0,Ie.M.value&&window.sessionStorage.setItem("didomi-page-session-active",!0)}}sendConsentAsked(e,t,n,r,s){var o,i;void 0===this.sentEvents[this.eventTypes.consentAsked.type]&&(this.send(this.eventTypes.consentAsked.type,{purposes:e,vendors:t,position:s,purposes_li:n,vendors_li:r},null==(o=me.value)||null==(i=o.sampleSizes)?void 0:i.consentAsked),this.sentEvents[this.eventTypes.consentAsked.type]=!0)}sendConsentGiven(e,t){var n,r;void 0===t&&(t=!1),this.send(this.eventTypes.consentGiven.type,e,null==(n=me.value)||null==(r=n.sampleSizes)?void 0:r.consentGiven,t)}sendPreferencesPurposesShown(){var e,t,n=this.eventTypes.uiAction.type+"-preferences.showpurposes";void 0===this.sentEvents[n]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.shownpurposes"},null==(e=me.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesPurposes,!1,!1),this.sentEvents[n]=!0)}sendPreferencesVendorsShown(){var e,t,n=this.eventTypes.uiAction.type+"-preferences.showvendors";void 0===this.sentEvents[n]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.shownvendors"},null==(e=me.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesVendors,!1,!1),this.sentEvents[n]=!0)}sendPreferencesPurposeStatusChanged(t){var n,r,s=t||{},o=this.eventTypes.uiAction.type+"-preferences.purposechanged";void 0===this.sentEvents[o]&&(this.send(this.eventTypes.uiAction.type,(0,e.A)({action:"preferences.purposechanged",category:void 0!==s.category&&s.category},s),null==(n=me.value)||null==(r=n.sampleSizes)?void 0:r.uiActionPreferencesPurposeChanged,!1,!1),this.sentEvents[o]=!0)}sendPreferencesVendorStatusChanged(){var e,t,n=this.eventTypes.uiAction.type+"-preferences.vendorchanged";void 0===this.sentEvents[n]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.vendorchanged"},null==(e=me.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesVendorChanged,!1,!1),this.sentEvents[n]=!0)}sendPreferencesShownPersonalDataTypes(){var e,t,n=this.eventTypes.uiAction.type+"-preferences.shownpersonaldatatypes";void 0===this.sentEvents[n]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.shownpersonaldatatypes"},null==(e=me.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesShownPersonalDataTypes,!1,!1),this.sentEvents[n]=!0)}sendPreferencesSPIChanged(){var e,t,n=this.eventTypes.uiAction.type+"-preferences.spichanged";void 0===this.sentEvents[n]&&(this.send(this.eventTypes.uiAction.type,{action:"preferences.spichanged"},null==(e=me.value)||null==(t=e.sampleSizes)?void 0:t.uiActionPreferencesSPIChanged,!1,!1),this.sentEvents[n]=!0)}sendSyncAcknowledged(e){var t,n,r=this.eventTypes.syncAcknowledged.type;return!this.hasEventBeenSent(r)&&(this.send(this.eventTypes.syncAcknowledged.type,e,null==(t=me.value)||null==(n=t.sampleSizes)?void 0:n.syncAcknowledged,!1,!1),this.sentEvents[r]=!0,!0)}hasEventBeenSent(e){return void 0!==this.sentEvents[e]}}ot.prototype.eventTypes={pageview:{type:"pageview",errorName:"createEventPageview"},consentAsked:{type:"consent.asked",errorName:"createEventConsentAsked"},consentGiven:{type:"consent.given",errorName:"createEventConsentGiven"},uiAction:{type:"ui.action",errorName:"createEventUIAction"},syncAcknowledged:{type:"sync.acknowledged",errorName:"createEventSyncAcknowledged"},metrics:{type:"metrics",errorName:"createEventMetrics"}};var it=i(34768),at=i(22639),ut=i(40950),lt=i(91963);class dt extends v.A{configure(e){e&&this.actions.setConsentNoticeConfig(e)}isVisible(){return(0,l.Jt)(this.store.getState(),"consentNotice.show")||!1}uiLoaded(){var e,t,n,r;!0===this.store.getState().consentNotice.showOnUILoad&&(null!=(e=it.l.value)&&e.enable&&this.actions.showConsentNotice(),(null!=(t=it.l.value)&&t.enable||null!=(n=at.v.value)&&n.showWhenConsentIsMissing)&&(null==(r=it.l.value)||!r.enable)||(0,F.Ic)("notice.shown"))}show(){var e,t;"none"!==(null==(e=$.r.value)?void 0:e.name)?lt.p.value?console.warn(G.a.didomiPrefix+"User is a bot and consent is not required for bots. The notice will not be shown."):(null!=(t=H.G.value)&&t.isUnderage&&(0,ut.L)({visible:!0}),this.isVisible()||(this.actions.showConsentNoticeOnLoad(),this.services.UIService.show(this.uiLoaded.bind(this)))):console.warn(G.a.didomiPrefix+"No regulation applicable. The notice will not be shown.")}hide(){var e;this.isVisible()&&(0,F.Ic)("notice.hidden"),this.actions.hideConsentNotice(),null!=(e=H.G.value)&&e.isUnderage&&(0,ut.L)({visible:!1})}close(){this.hide(),(0,F.Ic)("notice.clickclose")}}var ct=i(58281);class pt extends v.A{configure(t){t&&this.actions.setConsentPopupConfig((0,e.A)({},t))}isVisible(){return(0,l.Jt)(this.store.getState(),"consentPopup.open")||!1}uiLoaded(e){var t,n,r,s;"information"===e?null!=(t=at.v.value)&&null!=(n=t.information)&&n.enable&&(this.isVisible()||(0,F.Ic)("preferences.shown"),this.actions.showConsentPopup(),this.actions.switchViewConsentPopup(e)):(this.isVisible()||Ie.M.value||(0,F.Ic)("preferences.shown"),this.actions.showConsentPopup(),-1!==["purposes","vendors","sensitive-personal-information"].indexOf(e)?(this.actions.switchViewConsentPopup("preferences"),this.actions.switchPreferencesViewConsentPopup(e)):null!=(r=at.v.value)&&null!=(s=r.information)&&s.enable?this.actions.switchViewConsentPopup("information"):(this.actions.switchViewConsentPopup("preferences"),this.actions.switchPreferencesViewConsentPopup("purposes")))}show(e){var t;if("vendors"===e&&!ct.A.value)return console.error(G.a.didomiPrefix+"This action cannot be performed.");"none"!==(null==(t=$.r.value)?void 0:t.name)?("vendors"===e&&(0,F.Ic)("notice.clickviewvendors"),this.services.UIService.show(this.uiLoaded.bind(this,e))):console.warn(G.a.didomiPrefix+"No regulation applicable. The notice will not be shown.")}hide(){this.isVisible()&&(this.actions.hideConsentPopup(),(0,F.Ic)("preferences.hidden"))}}var vt=i(26149),ft=(0,C.EW)(()=>{if(!A.a.value.hasMadeAnyChoice&&oe.H.value.operators.length>0)return!1;var e=[];for(var t of w.t.value.purposesBasedOnConsent)e.push(A.a.value.byLegalBasis.consent.purposesById[t.id]);for(var n of w.t.value.purposesBasedOnLI)e.push(A.a.value.byLegalBasis.li.purposesById[n.id]);return oe.H.value.thirdPartyOperators.forEach(t=>{t.collectionMethods.includes("optin")&&e.push(A.a.value.byLegalBasis.consent.vendorsById[t.id]),t.collectionMethods.includes("optout")&&e.push(A.a.value.byLegalBasis.li.vendorsById[t.id])}),!1===e.some(e=>void 0===e)}),ht=(0,C.EW)(()=>{var e;return!0===(null==(e=Ce.U.value)?void 0:e.resetConsentBeforeRecollection)}),gt=i(23187),mt=e=>(e=>(0,gt.Hm)(e,Ce.U.value.consentDuration))(e)||(e=>(0,gt.Hm)(e,Ce.U.value.deniedConsentDuration)&&(0,gt.RT)(e))(e),bt=(0,C.EW)(()=>{var e,t,n,r,s=null==(e=it.l.value)?void 0:e.daysBeforeShowingAgain,o=null==(t=I.II.value)?void 0:t.updated;return(n=new Date(o||null),(r=Math.round(((new Date).getTime()-n.getTime())/864e5))<0?0:r)>=Number(null!=s?s:0)}),yt=void 0,_t=i(81062),It={iab:{all:!0,version:2}},St=(0,C.EW)(()=>{var e,t,n,r,s,o,i,a,u;return null!=(e=Ce.U.value)&&null!=(t=e.vendors)&&null!=(n=t.iab)&&n.cmpId&&(0,l.Et)(null==(r=Ce.U.value)||null==(s=r.vendors)||null==(o=s.iab)?void 0:o.cmpId)?null==(i=Ce.U.value)||null==(a=i.vendors)||null==(u=a.iab)?void 0:u.cmpId:G.a.defaultCMPID}),wt=i(61304),At=void 0,Ct=()=>new Promise(t=>{Promise.resolve().then(i.bind(i,52926)).then(n=>{var r,s,o=(0,e.A)({},Ce.U.value&&Ce.U.value,{vendors:(0,e.A)({},(s=null==(r=Ce.U.value)?void 0:r.vendors,void 0===s?It:void 0===(null==s?void 0:s.iab)||void 0===s.iab.all&&void 0===s.iab.include&&void 0===s.iab.exclude?(0,e.A)({},s,It):s))});n.initIABTCF(_t.A.value,o,{removeDeletedVendors:wt.s.value,encoderOptions:{cmpId:St.value,cmpVersion:G.a.defaultCMPVersion,disclosedVendorsSegment:!0}}),(e=>{At=e})(n),t()})}),Pt=i(55217),kt=(0,C.EW)(()=>{var e,t,n,r,s=null==(e=Ce.U.value)||null==(t=e.vendors)||null==(n=t.iab)?void 0:n.defaultStrings,o=null==s?void 0:s.vendorListVersion,i=null==s?void 0:s.created,a=(0,Pt.JT)(new Date).toISOString(),u=void 0,l=void 0,d=void 0;return(null==(r=_t.A.value)?void 0:r.vendorListVersion)===o&&a===i&&(u=null==s?void 0:s.default,l=null==s?void 0:s.positive,d=null==s?void 0:s.negative),{defaultTCString:u,positiveTCString:l,negativeTCString:d}}),Et=!1,Ot=!1,Tt=e=>{Et!==e&&(Et=e,yt.updateIABTCFCmpApi(e))},Lt=()=>{var e;(0,F.on)("notice.shown",()=>{var e;null!=(e=it.l.value)&&e.enable&&(Ot=!0,Tt(!0))}),(0,F.on)("preferences.shown",()=>Tt(!0)),null!=(e=it.l.value)&&e.enable&&(0,F.on)("notice.hidden",()=>{Ot=!1,Tt(!1)}),(0,F.on)("preferences.hidden",()=>{var e;null!=(e=it.l.value)&&e.enable&&Ot||Tt(!1)}),(0,F.on)("internal.consent.changed",()=>yt.updateIABTCFCmpApi(!1))},xt=function(e){var t,r,s,o,i;if(void 0===e&&(e={}),void 0!==yt&&void 0!==At){var a={cmpId:St.value,cmpVersion:G.a.defaultCMPVersion,isConsentRequired:te.y.value,isGDPRApplied:"gdpr"===(null==(t=$.r.value)?void 0:t.name),defaultConsentString:null,enableAdvertiserConsentMode:!0===(null==(r=n.bK.value.integrations)||null==(s=r.vendors)||null==(o=s.gcm)?void 0:o.enableTCFAdvertiserConsentMode),consentStringGetter:()=>_.M.value,additionalConsentStringGetter:()=>S.J.value,sdkEventListenersSetter:Lt,willAutoShowNotice:!0===e.willAutoShowNotice};if(!Ae.X.value||"gdpr"!==(null==(i=$.r.value)?void 0:i.name))return a.isConsentRequired=!1,a.consentStringGetter=()=>null,void yt.initIABTCFCmpAPI(Ce.U.value,a);if(!(te.y.value?_.M.value:null)&&te.y.value){var u,l=null==(u=kt.value)?void 0:u.defaultTCString;if(!l){var d,c,p={defaultLIToEnabled:!(null!=(d=at.v.value)&&d.combineLIAndConsent),generate:{default:!0,positive:!1,negative:!1}};l=null==(c=At.getDefaultStrings(p))?void 0:c.default}a.defaultConsentString=l,l&&(0,_.R)(l)}yt.initIABTCFCmpAPI(Ce.U.value,a)}};class Rt extends v.A{configure(e){if(e){var t={},n=(0,l.Jt)(e,"vendors.google");n&&n.additionalConsent&&(t.google={additionalConsent:{positive:"string"==typeof n.additionalConsent.positive?n.additionalConsent.positive:null,negative:"string"==typeof n.additionalConsent.negative?n.additionalConsent.negative:null}}),n&&void 0!==n.fullATP&&(0,l.hZ)(t,"google.fullATP",n.fullATP),e.customDomain&&(t.customDomain=e.customDomain),e.regulations&&(t.regulations=e.regulations),this.actions.setWebsiteConfig(t)}}shouldReconsentBeEnforced(){return ht.value&&(this.shouldUserStatusBeCollected()||mt(I.II.value))}_showNoticeAndPreferences(){var e;this.services.NoticeService.show(),null!=(e=at.v.value)&&e.showWhenConsentIsMissing&&this.services.PreferencesService.show()}resetAllUserChoicesToDefaults(){var{user_id:e}=I.II.value;this.services.StorageService.createNewToken(e),xt({willAutoShowNotice:!0})}determineConsentNoticeStatus(){var e;this.willNoticeBeAutoShown()?(this.shouldReconsentBeEnforced()&&this.resetAllUserChoicesToDefaults(),this._showNoticeAndPreferences()):(this.services.NoticeService.hide(),null!=(e=at.v.value)&&e.showWhenConsentIsMissing&&this.services.PreferencesService.hide())}willNoticeBeAutoShown(){return this.shouldReconsentBeEnforced()||this.shouldNoticeBeShown()}shouldNoticeBeShown(){return this.shouldConsentBeCollected()}handleUserStatusUpdated(){this.shouldConsentBeCollected()||this.services.NoticeService.hide()}shouldConsentBeCollected(){return!!te.y.value&&(!!Z.value||!0!==ft.value&&(bt.value||!A.a.value.hasMadeAnyChoice))}shouldUserStatusBeCollected(){var e;return"none"!==(null==(e=$.r.value)?void 0:e.name)&&(!!Z.value||(!A.a.value.hasMadeAnyChoice||this.isUserStatusPartial()&&bt.value))}setUserAgreeToAll(e){var t,n=b.T.value,r=w.t.value.purposeIdsBasedOnConsent,s=w.t.value.purposeIdsBasedOnLI,o=m.R.value;if(0!==[...r,...s].length&&0!==o.length||0!==n.length){var i=new d.A(this.services.ConsentService.getUserStatus.bind(this.services.ConsentService),this.getSetUserStatusWithPrecomputedTcfString(null==(t=kt.value)?void 0:t.positiveTCString),e);i.enablePurposes(...r),i.enableVendors(...o),i.enableVendorsLegitimateInterests(...vt.H$.value.operatorIdsByCollectionMethod.optout),i.enablePurposesLegitimateInterests(...s),i.commit(),this.services.NoticeService.hide()}}setUserDisagreeToAll(e){var t,n=b.T.value,r=w.t.value.purposeIdsBasedOnConsent,s=w.t.value.purposeIdsBasedOnLI,o=m.R.value;if(0!==[...r,...s].length&&0!==o.length||0!==n.length){var i=new d.A(this.services.ConsentService.getUserStatus.bind(this.services.ConsentService),this.getSetUserStatusWithPrecomputedTcfString(null==(t=kt.value)?void 0:t.negativeTCString),e);i.disablePurposes(...r),i.disableVendors(...o),i.disableVendorsLegitimateInterests(...vt.H$.value.operatorIdsByCollectionMethod.optout),i.disablePurposesLegitimateInterests(...s),i.commit(),this.services.NoticeService.hide()}}getSetUserStatusWithPrecomputedTcfString(t){var n=this.services.ConsentService.setUserStatus.bind(this.services.ConsentService);return t?r=>n((0,e.A)({},r,{precomputedTcfString:t})):n}isUserConsentStatusPartial(){var e;return!1!==te.y.value&&(0!==(null==(e=P.h.value)?void 0:e.length)&&!ft.value)}isUserStatusPartial(){var e;return"none"!==(null==(e=$.r.value)?void 0:e.name)&&(!(!P.h.value||0===P.h.value.length)&&!ft.value)}}var Ut=i(95236),Dt=i(98516);class Nt extends v.A{updateConsentToken(e){var t=this.createConsentByVendorFromToken(e);this.actions.setConsentByVendor(t),(0,I.vY)(e)}isVendorEnabled(e){var{vendor:t,enabledPurposes:n,enabledLIPurposes:r=[],essentialPurposes:s,enabledVendors:o}=e;if(-1===o.indexOf(t.id))return!1;var i=Array.isArray(t.purposeIds)?t.purposeIds.filter(e=>-1===s.indexOf(e)):t.purposeIds;for(var a of i)if(-1===n.indexOf(a))return!1;var u=Array.isArray(t.legIntPurposeIds)?t.legIntPurposeIds.filter(e=>-1===s.indexOf(e)):[];for(var l of u)if(-1===r.indexOf(l))return!1;return!0}createConsentByVendorFromToken(e){var t={},{purposes:n,purposes_li:r,vendors:s,vendors_li:o}=e,i=W("isVendorEnabled",this.isVendorEnabled),a=b.T.value,{enabledVendors:u,disabledVendors:l}=(e=>{var t=(0,h.$)([...Ut.M.value,...Dt.p.value]),n=e.disabled.filter(e=>-1===t.indexOf(e));return{enabledVendors:[...e.enabled,...t],disabledVendors:n}})({enabled:(0,h.$)([...s.enabled,...o.enabled]),disabled:(0,h.$)([...s.disabled,...o.disabled])});return[...u,...l].forEach(e=>{var s,o=null==(s=g.o.value)?void 0:s[e];t[e]={consentToAllPurposes:!o||i({vendor:o,enabledPurposes:n.enabled,disabledPurposes:n.disabled,enabledLIPurposes:(null==r?void 0:r.enabled)||[],essentialPurposes:a,enabledVendors:u,disabledVendors:l})}}),t}}var Bt=i(87127),Vt=i(4640),jt=(0,C.vP)(null),Mt=e=>{jt.value=e},Ft=e=>!0===e.sync.enabled,zt=e=>e.sync.timeout,Wt=(0,he.Mz)(e=>e.sync.frequency,()=>{var e;return(0,q.u)(null==(e=I.II.value)?void 0:e.sync)},(e,t)=>!t||!e||!!(Math.floor((new Date-new Date(t))/1e3)>=e)),Gt=(0,he.Mz)(Ft,()=>{var e;return null==(e=H.G.value)?void 0:e.organizationUserId},()=>Vt.w.value,Wt,()=>{var e,t,n;return!(null==(e=jt.value)||!e.organizationUserId)&&(null==(t=jt.value)?void 0:t.organizationUserId)!==(null==(n=H.G.value)?void 0:n.organizationUserId)},(e,t,n,r,s)=>!0===e&&"string"==typeof t&&t.length>0&&!1===n&&(r||s)),Ht=e=>e.signature.value,Kt=i(97531),Jt=i(92920),qt=(0,C.EW)(()=>{var e=Jt.$.value||[],t=new Set;for(var n of e)n.legIntPurposeIds.forEach(e=>t.add(e));return[...t]}),Zt=(0,C.EW)(()=>{var e;return(null==(e=we.q.value)?void 0:e.semVersion)===G.a.tcfVersion2_2?{1:f.VF.consentOnly,2:f.VF.consentAndLegitimateInterest,3:f.VF.consentOnly,4:f.VF.consentOnly,5:f.VF.consentOnly,6:f.VF.consentOnly,7:f.VF.consentAndLegitimateInterest,8:f.VF.consentAndLegitimateInterest,9:f.VF.consentAndLegitimateInterest,10:f.VF.consentAndLegitimateInterest,11:f.VF.consentAndLegitimateInterest}:{1:f.VF.consentOnly,2:f.VF.consentAndLegitimateInterest,3:f.VF.consentAndLegitimateInterest,4:f.VF.consentAndLegitimateInterest,5:f.VF.consentAndLegitimateInterest,6:f.VF.consentAndLegitimateInterest,7:f.VF.consentAndLegitimateInterest,8:f.VF.consentAndLegitimateInterest,9:f.VF.consentAndLegitimateInterest,10:f.VF.consentAndLegitimateInterest}}),$t=(0,C.EW)(()=>{var e=Zt.value;return"object"==typeof e&&e?Object.keys(e).reduce((t,n)=>(e[n]===f.VF.consentOnly&&t.push(parseInt(n,10)),t),[]):[]}),Yt=(0,C.EW)(()=>{var e=$t.value,t=qt.value;return e.map(e=>f.RQ[e]).filter(e=>t.includes(e))}),Qt=(0,C.EW)(()=>{var{organizationUserId:e=null,organizationUserIdAuthAlgorithm:t=null,organizationUserIdAuthSid:n=null,organizationUserIdAuthSalt:r=null,organizationUserIdAuthDigest:s=null,organizationUserIdExp:o=null,organizationUserIdIv:i=null}=H.G.value||{};return{organizationUserId:e,organizationUserIdAuthAlgorithm:t,organizationUserIdAuthSid:n,organizationUserIdAuthSalt:r,organizationUserIdAuthDigest:s,organizationUserIdExp:o,organizationUserIdIv:i}}),Xt=i(35787),en=(0,C.EW)(()=>{var e;return Xt.T.value?null==(e=Xt.T.value)?void 0:e.map(e=>e.id):[]}),tn=i(57483),nn=i(41990),rn=i(24163),sn=i(52140),on=i(62026),an=i(73412),un=i(10379),ln=i(78691),dn=(0,C.EW)(()=>{var e,t=Object.values(an.m.value||{});if(null==t||!t.length||null==(e=Se.O.value)||!e.isDidomiConsentStringEncodingEnabled)return{purposeToNumericIdMap:{},numberIdToPurposeMap:{}};var n={},r={};for(var s of t){var o,i;(0,un.LL)(null==s||null==(o=s.namespaces)?void 0:o.num)&&!r[null==s||null==(i=s.namespaces)?void 0:i.num]&&(n[s.id]=s.namespaces.num,r[s.namespaces.num]=s.id)}return{purposeToNumericIdMap:n,numberIdToPurposeMap:r}});(0,C.QZ)(()=>{var e,t;if(null!=(e=ln.x.value)&&e.length&&null!=(t=Se.O.value)&&t.isDidomiConsentStringEncodingEnabled){var n=[];for(var r of ln.x.value){var s,o;if((0,un.LL)(null==r||null==(s=r.namespaces)?void 0:s.num))if(n.includes(null==r||null==(o=r.namespaces)?void 0:o.num))console.error(G.a.didomiPrefix+'The purpose id "'+(null==r?void 0:r.id)+'" has a numeric id that was already registered. Ignoring it.');else{var i;n.push(null==r||null==(i=r.namespaces)?void 0:i.num)}else console.error(G.a.didomiPrefix+'The purpose id "'+(null==r?void 0:r.id)+'" has an invalid numeric id. Ignoring it.')}}});var cn=e=>null==e?void 0:e.map(e=>{var t;return null==(t=dn.value)?void 0:t.purposeToNumericIdMap[e]}).filter(e=>e),pn=(e,t)=>{var n={enabled:[],disabled:[]};if(!e)return n;var{enabled:r,disabled:s}=e;return r&&(n.enabled=t(r)),s&&(n.disabled=t(s)),n},vn=(0,C.EW)(()=>{var e=Object.values(g.o.value||{});if(null==e||!e.length||!Se.O.value.isDidomiConsentStringEncodingEnabled)return{vendorToNumericIdMap:{},numberIdToVendorMap:{}};var t={},n={};for(var r of e){var s;(0,un.LL)(null==r||null==(s=r.namespaces)?void 0:s.num)&&(t[r.id]=r.namespaces.num,n[r.namespaces.num]=r.id)}return{vendorToNumericIdMap:t,numberIdToVendorMap:n}});(0,C.QZ)(()=>{var e,t;if(null!=(e=Jt.$.value)&&e.length&&null!=(t=Se.O.value)&&t.isDidomiConsentStringEncodingEnabled)for(var n of Jt.$.value){var r,s,o=n.purposeIds||[],i=n.legIntPurposeIds||[],a=!o.some(e=>{var t,n;return!(0,un.LL)(null==(t=an.m.value[e])||null==(n=t.namespaces)?void 0:n.num)}),u=!i.some(e=>{var t,n;return!(0,un.LL)(null==(t=an.m.value[e])||null==(n=t.namespaces)?void 0:n.num)});if(!a||!u)console.error(G.a.didomiPrefix+'The vendor with ID "'+((null==(s=n.id)?void 0:s.split("c:")[1])||n.id)+'" has purposes with invalid numeric IDs and they will not be encoded in the Didomi Consent String.');var l,d=null==(r=n.namespaces)?void 0:r.num;if(!(0,un.LL)(d))console.error(G.a.didomiPrefix+'The vendor with ID "'+((null==(l=n.id)?void 0:l.split("c:")[1])||n.id)+'" has an invalid numeric ID and it will not be encoded in the Didomi Consent String.')}});var fn=e=>null==e?void 0:e.map(e=>{var t;return null==(t=vn.value)?void 0:t.vendorToNumericIdMap[e]}).filter(e=>e),hn=e=>{var t,n,r;if(rn.g&&e&&null!=(t=Se.O.value)&&t.isDidomiConsentStringEncodingEnabled){var s=null==(n=Se.O.value)?void 0:n.version,o=null==(r=Se.O.value)?void 0:r.schemaOverrides,i=void 0;o&&(i={schemaOverrides:o});var a,u=pn(e.purposes,cn),l=pn(e.purposes_li,cn),d=pn(e.vendors,fn),c=pn(e.vendors_li,fn),p=new Date(e.created),v=new Date(e.updated),f=e.sync?new Date(e.sync):void 0,h={userId:e.user_id,created:p,updated:v,vendors:{optin:d,optout:c},purposes:{optin:u,optout:l},sync:f};if(2===s)h.regulationId=null!=(a=e.regulation_id)?a:0;return rn.g.encode(s,h,i)}},gn=e=>null==e?void 0:e.map(e=>{var t;return null==(t=dn.value)?void 0:t.numberIdToPurposeMap[e]}).filter(e=>e),mn=e=>null==e?void 0:e.map(e=>{var t;return null==(t=vn.value)?void 0:t.numberIdToVendorMap[e]}).filter(e=>e),bn=i(26781),yn=i(91888),_n=(t,n)=>{var r;if(rn.g&&t&&null!=(r=Se.O.value)&&r.isDidomiConsentStringEncodingEnabled){var s=void 0;n&&(s={logs:n}),t=(0,Bt.Sd)(t);var o=rn.g.decode(t,s),i=pn(o.purposes_optin,gn),a=pn(o.purposes_optout,gn),u=pn(o.vendors_optin,mn),l=pn(o.vendors_optout,mn),d=void 0;return yn.E.value&&yn.E.value.length>0&&(d=bn.w6({vendors:u,vendors_li:l},yn.E.value)),(0,e.A)({user_id:o.user_id,created:o.created,updated:o.updated,sync:o.sync,regulation_id:o.regulation_id,vendors:u,purposes:i,vendors_li:l,purposes_li:a},d?{ac:d}:{})}},In=i(3330),Sn=i(26104),wn=i(4609),An=i(418),Cn=(0,C.vP)(null),Pn=(0,C.EW)(()=>"false"!==Cn.value),kn=(0,C.vP)(null),En=(0,C.vP)(!1),On=(0,C.vP)(0),Tn=(0,C.vP)(0),Ln=(0,C.vP)(0),xn=(0,C.vP)(!1),Rn=(0,C.EW)(()=>{var e;return(null==(e=wn.G.value)?void 0:e.thirdParty.enabled)&&!1!==Pn.value&&!0!==En.value}),Un=(0,C.EW)(()=>{var e=Rn.value?1:0;return On.value===e+Tn.value+Ln.value}),Dn=i(72985),Nn=i(16691);class Bn{constructor(e){this.callbacks={},this.timeoutCalled=!1;var t=document.createElement("iframe");t.setAttribute("src",e),t.setAttribute("id","iframe-cookies-group"),t.style.display="none",document.body.appendChild(t),this.iframe=t}isNotResponding(){return this.timeoutCalled}getType(){return"group"}getTokens(e,t,n,r,s,o,i,a,u,l){void 0===u&&(u=4e3),void 0===l&&(l=3e4);var d=setTimeout(()=>{this.timeoutCalled=!0,a(new Error("Timeout"))},l);this.iframe.onload=()=>{clearTimeout(d),this.postMessageToIframe("getTokens",{name:e,type:t,storageSources:n,isSameSiteRequired:r,TCFVersion:s,expiry:o,secure:i},a,u)}}setToken(e,t,n,r,s,o){this.postMessageToIframe("setToken",{name:e,value:t,storageSources:n,isSameSiteRequired:r,expiry:s,secure:o})}deleteToken(e){this.postMessageToIframe("deleteToken",{name:e})}postMessageToIframe(e,t,n,r){if(void 0===r&&(r=4e3),this.iframe&&!this.isNotResponding()){var s=(0,Nn.A)(),o=this.getType();this.iframe.contentWindow.postMessage({__didomiCall:{call:e,callId:s,type:o,params:t}},"*"),n&&(this.callbacks[s]=n,setTimeout(()=>{this.callbacks[s]&&(this.callbacks[s](new Error("Timeout")),delete this.callbacks[s],this.timeoutCalled=!0)},r))}}receiveMessageFromIframe(e){if(e&&e.data){var t;try{t="string"==typeof e.data?JSON.parse(e.data):e.data}catch(e){return}if(t.__didomiCall){var n=t.__didomiCall;this.callbacks[n.callId]&&this.getType()===n.type&&(this.callbacks[n.callId](null,n.params),delete this.callbacks[n.callId])}}}}var Vn=function(e,t,n){void 0===t&&(t={}),On.value+=1,e&&"Timeout"===e.message?(Tn.value+=1,En.value=!0,!xn.value&&Un.value&&(xn.value=!0,n())):(t.didomi_accept_cookie?(0,nn.S4)({didomiToken:t.didomi_token,iabConsentString:t.iab_consent_string}):(Ln.value+=1,(()=>{var e,t,n,r;(0,sn.NT)("didomi_third_party_cookie",!1,null==(e=wn.G.value)?void 0:e.thirdParty.customDomain,null==(t=wn.G.value)?void 0:t.sources,!1,!1,An.t.value.durationInDays,null==(n=wn.G.value)?void 0:n.secure);var s=(0,sn.Rf)("didomi_third_party_cookie",null==(r=wn.G.value)?void 0:r.sources);Cn.value=void 0===s?"false":s})()),!xn.value&&Un.value&&(xn.value=!0,n()))},jn=e=>{var t,n,s,o;Rn.value?(window.addEventListener?window.addEventListener("message",e=>{var t;return null==(t=kn.value)?void 0:t.receiveMessageFromIframe(e)},!1):window.attachEvent("onmessage",e=>{var t;return null==(t=kn.value)?void 0:t.receiveMessageFromIframe(e)}),kn.value=(()=>{var e,t=(0,r.M)("globalCookiesProtocol"),n=null==(e=wn.G.value)?void 0:e.thirdParty.customDomain,s=t+"://"+(0,Pt.b5)(n)+"/global-cookies/"+(0,Pt.HF)()+"/global-cookies."+(0,Pt.HF)()+".html";return new Bn(s)})(),null==(t=kn.value)||t.getTokens(Dn.x.value,"group",null==(n=wn.G.value)?void 0:n.sources,null==(s=wn.G.value)?void 0:s.sameSiteRequired,we.q.value.majorVersion,An.t.value.durationInDays,null==(o=wn.G.value)?void 0:o.secure,(t,n)=>Vn(t,n,e))):e()},Mn=i(90013),Fn=i(49049),zn=i(76638),Wn=e=>{var t={};return null==e||e.map(e=>{t[e.id]={id:e.id,purposes:e.purposeIds,flexiblePurposes:e.flexiblePurposeIds,specialPurposes:e.specialPurposeIds,legIntPurposes:e.legIntPurposeIds,features:e.featureIds,specialFeatures:e.specialFeatureIds,name:"",urls:[],dataRetention:{},dataDeclaration:[]}}),t},Gn=t=>{var n={};return null==t||t.map(t=>{n[t.id]=(0,e.A)({},t,{name:"",description:"",illustrations:[]})}),n},Hn=(0,C.EW)(()=>{if(!_t.A.value)return null;var e,t,n={vendorListVersion:_t.A.value.vendorListVersion,lastUpdated:_t.A.value.lastUpdated,gvlSpecificationVersion:_t.A.value.gvlSpecificationVersion,tcfPolicyVersion:_t.A.value.tcfPolicyVersion,purposes:Gn(_t.A.value.purposes),specialPurposes:Gn(_t.A.value.specialPurposes),features:Gn(_t.A.value.features),specialFeatures:Gn(_t.A.value.specialFeatures),stacks:(e=_t.A.value.stacks,t={},null==e||e.map(e=>{t[e.id]={id:e.id,name:"",description:"",purposes:e.purposeIds,specialFeatures:e.specialFeatureIds}}),t),vendors:Wn(_t.A.value.vendors)};return new zn.aI(n)}),Kn=(0,C.vP)(null),Jn=()=>{Kn.value=null};class qn extends v.A{initStorages(e){jn(()=>{var t;null!=(t=Se.O.value)&&t.isDidomiConsentStringEncodingEnabled&&!rn.g?(0,F.on)("ced.loaded",()=>{e()}):e()})}getNewToken(){var e=(0,In.x)(),t=(0,Pt.bs)();return e.created=t,e.updated=t,e}createNewToken(e){void 0===e&&(e=null);var t=this.getNewToken();return e&&(0,l.hZ)(t,"user_id",e),E.o.value||this.resetIABToken(),this.setTokenToStorages(t),t}initStoreFromStorage(){var e,t,n,r=this.getTokenFromCookies(),s=r.token,o=r.iabConsentString,i=r.didomiTokenCreatedFromIABToken,a=r.userAuthParams,u=r.signature,l=r.dcsUserId;return mt(s)||!(e=>{var{token:t,regulationId:n,apply:r}=e;return!r||!t||0===t.regulation_id&&void 0===n||t.regulation_id===n})({token:s,regulationId:null==(e=$.r.value)?void 0:e.id,apply:(null==(t=Se.O.value)?void 0:t.isDidomiConsentStringEncodingEnabled)&&2===(null==(n=Se.O.value)?void 0:n.version)&&!Mn.I.value})?(s=this.reset(s.user_id),i=!1):s&&i?this.setTokenToStorages(s,!0,a,{signature:u,dcsUserId:l}):s?(a&&Mt(a),this.services.SignatureService.setSignature({signature:u,dcsUserId:l}),this.services.LocalStoreService.updateConsentToken(s),(0,_.R)(o)):s=this.createNewToken(),Mn.I.value&&(this.setTokenToStorages(s,!1),this.services.SignatureService.sign()),this.syncLocalAndThirdPartyStorage(),{token:s,didomiTokenCreatedFromIABToken:i}}setTokenToStorages(e,t,n,r){void 0===t&&(t=!0),void 0===n&&(n=null),void 0===r&&(r=null),t&&(e=this.updateToken(e));var s=this.createConsentCookiesFromToken(e);return this.setCookies(s),n&&Mt(n),r&&this.services.SignatureService.setSignature(r),this.services.LocalStoreService.updateConsentToken(e),(0,_.R)(s.iabConsentString),e}flushTokenToStorage(){var e=(0,l.Go)(I.II.value);this.setTokenToStorages(e,!1)}updateToken(e){var t=(0,l.Go)(e),n=(0,Pt.bs)();return t.updated=n,(0,q.v)(t.created)&&(t.created=n),t}getEncode(){var e;if(null!=(e=Se.O.value)&&e.isDidomiConsentStringEncodingEnabled)return hn}getDecode(){var e;if(null!=(e=Se.O.value)&&e.isDidomiConsentStringEncodingEnabled)return _n}createConsentCookiesFromToken(t){var n,r,o,i,a,u=(0,l.Go)(t),d=null,c=(0,l.Jt)(u,"vendors.enabled")||[],p=(0,l.Jt)(u,"vendors.disabled")||[],v=(0,l.Jt)(u,"vendors_li.enabled")||[],h=(0,l.Jt)(u,"vendors_li.disabled")||[],g=!E.o.value;if(g&&(c.length||p.length||v.length||h.length)){var m;d=Kn.value?Kn.value:ie.value?ie.value:At.encodeToken(u,{consentLanguage:s.H.value});var b=bn.w6((0,l.Go)(u),yn.E.value);null!=(m=Se.O.value)&&m.isDidomiConsentStringEncodingEnabled||(u=(t=>{var n,r=null==(n=Fn.l.value)?void 0:n.map(e=>{var{id:t}=e;return t}),s=e=>-1===r.indexOf(e);return(0,e.A)({},t,{vendors:{enabled:t.vendors.enabled.filter(s),disabled:t.vendors.disabled.filter(s)},vendors_li:{enabled:t.vendors_li.enabled.filter(s),disabled:t.vendors_li.disabled.filter(s)}})})(u)),b&&(u.ac=b)}var y=g?null==(n=en.value)?void 0:n.filter(e=>!Yt.value.includes(e)):[];return g&&null!=(r=Se.O.value)&&r.isDidomiConsentStringEncodingEnabled&&(y=[...y,...Object.values(f.H2)]),(0,gt.h2)({token:u,regulationId:null==(o=$.r.value)?void 0:o.id,apply:(null==(i=Se.O.value)?void 0:i.isDidomiConsentStringEncodingEnabled)&&2===(null==(a=Se.O.value)?void 0:a.version)}),{iabConsentString:d,didomiTokenAsBase64:(0,gt.RE)(u,y,this.getEncode())}}setCookies(e){var t,n,r,{iabConsentString:s,didomiTokenAsBase64:o}=e,i=this.store.getState();if(null!=(t=Se.O.value)&&t.isDidomiConsentStringEncodingEnabled){var a,u,l=(e=>e.signature.dcsUserId)(i)||"",d=Ht(i)?"~"+Ht(i):"",c="",p=null!=(a=I.II.value)&&a.sync?new Date(null==(u=I.II.value)?void 0:u.sync).getTime():"";Ft(i)&&(n=Qt.value,r=(0,sn.yN)(n),c=on.o4.btoa(JSON.stringify(r))),o=o+"."+l+"."+c+"."+p+d}return W("setCookies",()=>{Rn.value?(((e,t)=>{var n,r,s,o,i,a,u,l;e&&(null==(n=kn.value)||n.setToken(Dn.x.value,e,null==(r=wn.G.value)?void 0:r.sources,null==(s=wn.G.value)?void 0:s.sameSiteRequired,An.t.value.durationInDays,null==(o=wn.G.value)?void 0:o.secure)),t&&(null==(i=kn.value)||i.setToken(Sn.O.value,t,null==(a=wn.G.value)?void 0:a.sources,null==(u=wn.G.value)?void 0:u.sameSiteRequired,An.t.value.durationInDays,null==(l=wn.G.value)?void 0:l.secure))})(o,s),E.o.value||(0,tn.M9)({didomiToken:null,iabConsentString:s})):(0,tn.M9)({didomiToken:o,iabConsentString:s})})()}getCookies(){return W("getCookies",()=>null!==nn.r5.value.didomiToken||null!==nn.r5.value.iabConsentString?nn.r5.value:tn.lB.value)(this.getNewToken())}getTokenFromCookies(){var t,n,r=this.getCookies(),s=null;!E.o.value&&r.iabConsentString&&((s=At.decodeTCString(r.iabConsentString,{checkCMPId:!1===Rn.value,defaultCMPId:G.a.defaultCMPID,returnTCModel:!0}))||console.error(G.a.didomiPrefix+"Failed to decode TCF consent string from cookies: "+r.iabConsentString));var o=(0,Bt.Sd)(r.didomiToken)?(0,gt.qQ)((0,Bt.Sd)(r.didomiToken),this.getDecode()):null,i=null,a=(0,Bt.kz)(r.didomiToken),u=(0,Bt.yE)(r.didomiToken),d=(0,Bt.dD)(r.didomiToken),c=(0,Bt.H3)(r.didomiToken);null!=(t=Se.O.value)&&t.isDidomiConsentStringEncodingEnabled&&a&&(i=(e=>{try{var t=JSON.parse(on.o4.atob(e));return(0,sn.J_)(t)}catch(e){return console.error(G.a.didomiPrefix+"Error while parsing user auth parameters cookie"),{}}})(a));var p=(0,l.Jt)(o,"ac"),v=null;E.o.value||null!=(n=Se.O.value)&&n.isDidomiConsentStringEncodingEnabled&&!Mn.I.value||(v=p?(e=>e?bn.At(e,Fn.l.value):null)(p):null);var f={didomiToken:o,iabToken:s,addtlConsent:v},h=this.mergeTokens(f.didomiToken,f.iabToken,f.addtlConsent),g=h?(0,e.A)({},h,{sync:u||h.sync}):null;return{didomiTokenCreatedFromIABToken:h&&f.iabToken&&!f.didomiToken,token:g,iabConsentString:s?r.iabConsentString:null,userAuthParams:i,signature:d,dcsUserId:c}}mergeTokens(e,t,n){if(!e&&!t&&!n)return null;var r,s,o,i,a,u,d,c=(0,l.Go)(e)||(0,In.x)();if(t){var p,v,h=(d=Object.keys(null==(u=Hn.value)?void 0:u.vendors).map(e=>parseInt(e)),Math.max(...d)),g=null==(p=en.value)?void 0:p.filter(e=>!Yt.value.includes(e)),m=null==(a=null==(r=Kt.E.value)||null==(s=r.filter(e=>"iab"!==e.namespace))?void 0:s.filter(e=>(0,f.br)(e)).map(e=>(0,f.in)(e)),v=null==(o=_t.A.value)||null==(i=o.vendors)?void 0:i.filter(e=>!a.includes(e.id)))?void 0:v.filter(e=>e.id<=h).map(e=>e.id),b=(0,l.Jt)(c,"vendors.enabled",[]).filter(e=>-1===m.indexOf(e)),y=(0,l.Jt)(c,"vendors.disabled",[]).filter(e=>-1===m.indexOf(e)),_=(0,l.Jt)(c,"vendors_li.enabled",[]).filter(e=>-1===m.indexOf(e)),I=(0,l.Jt)(c,"vendors_li.disabled",[]).filter(e=>-1===m.indexOf(e)),S=(0,l.Jt)(c,"purposes.enabled",[]).filter(e=>!en.value.includes(e)),w=(0,l.Jt)(c,"purposes.disabled",[]).filter(e=>!en.value.includes(e)),A=(0,l.Jt)(c,"purposes_li.enabled",[]).filter(e=>!g.includes(e)),C=(0,l.Jt)(c,"purposes_li.disabled",[]).filter(e=>!g.includes(e)),{enabledIABvendors:P,disabledIABvendors:k,enabledIABpurposes:E,disabledIABpurposes:O,enabledLIIABvendors:T,disabledLIIABvendors:L,enabledLIIABpurposes:x,disabledLIIABpurposes:R}=(e=>{var t,n,r,s,o,i,a,u=At.tcModelToToken(e,{includeSpecialFeatures:null==(t=Se.O.value)?void 0:t.isDidomiConsentStringEncodingEnabled,vendorsNotDisclosedSetUndefined:2===(null==(n=Ce.U.value)||null==(r=n.vendors)||null==(s=r.iab)?void 0:s.version)&&3===(null==(o=Ce.U.value)||null==(i=o.vendors)||null==(a=i.iab)?void 0:a.minorVersion)});return{enabledIABvendors:u.vendors.enabled,disabledIABvendors:u.vendors.disabled,enabledIABpurposes:u.purposes.enabled,disabledIABpurposes:u.purposes.disabled,enabledLIIABvendors:u.vendors_li.enabled,disabledLIIABvendors:u.vendors_li.disabled,enabledLIIABpurposes:u.purposes_li.enabled,disabledLIIABpurposes:u.purposes_li.disabled}})(t),U=(0,l.Jt)(n,"vendors.enabled",[]),D=(0,l.Jt)(n,"vendors.disabled",[]),N=(0,l.Jt)(n,"vendors_li.enabled",[]),B=(0,l.Jt)(n,"vendors_li.disabled",[]);(0,l.hZ)(c,"vendors.enabled",[...b,...P,...U]),(0,l.hZ)(c,"vendors.disabled",[...y,...k,...D]),(0,l.hZ)(c,"vendors_li.enabled",[..._,...T,...N]),(0,l.hZ)(c,"vendors_li.disabled",[...I,...L,...B]),(0,l.hZ)(c,"purposes.enabled",[...S,...E]),(0,l.hZ)(c,"purposes.disabled",[...w,...O]),(0,l.hZ)(c,"purposes_li.enabled",[...A,...x.filter(e=>!Yt.value.includes(e))]),(0,l.hZ)(c,"purposes_li.disabled",[...C,...R.filter(e=>!Yt.value.includes(e))])}return c}syncLocalAndThirdPartyStorage(){if(Rn.value){var e=tn.lB.value.iabConsentString;if(e){var t=nn.r5.value.iabConsentString;t&&e!==t&&(0,tn.M9)({didomiToken:null,iabConsentString:t})}}}reset(e){return(0,I.wJ)(),(0,Te.K)(""),this.createNewToken(e)}resetIABToken(){W("resetCookies",()=>{var e;(0,tn.dZ)(),Rn.value&&(null==(e=kn.value)||e.deleteToken(Sn.O.value))})()}getIdFromConsentToken(){var e;return(null==(e=I.II.value)?void 0:e.user_id)||null}}var Zn=i(96803);function $n(){var e;return!(null==(e=it.l.value)||!e.daysBeforeShowingAgain)&&bt.value}class Yn extends Rt{get hasStatusesBeforeCollection(){return E.o.value}_syncSpiPrefsState(){(0,Zn.uT)({actions:this.actions})}handleOptoutConsentNoticeStatus(){if(!lt.p.value)return Z.value?(ft.value&&this._syncSpiPrefsState(),void this.services.NoticeService.show()):void(ft.value?this._syncSpiPrefsState():ge.x.value.isEnabled?ge.x.value.shouldShowNotice&&this.services.NoticeService.show():A.a.value.hasMadeAnyChoice&&!$n()||this.services.NoticeService.show())}shouldOptoutNoticeBeShown(){return!lt.p.value&&(!!Z.value||!ft.value&&(ge.x.value.isEnabled?ge.x.value.shouldShowNotice:!A.a.value.hasMadeAnyChoice||$n()))}shouldConsentBeCollected(){return this.hasStatusesBeforeCollection?this.shouldOptoutNoticeBeShown():super.shouldConsentBeCollected()}_showNoticeAndPreferences(){var e;this.services.NoticeService.show(),null!=(e=at.v.value)&&e.showWhenConsentIsMissing&&this.services.PreferencesService.show()}determineConsentNoticeStatus(){var e,t,n,r;if(this.hasStatusesBeforeCollection)this.handleOptoutConsentNoticeStatus();else if("optin"===(null==(e=$.r.value)||null==(t=e.group)?void 0:t.name)&&this.shouldReconsentBeEnforced())this.resetAllUserChoicesToDefaults(),this._showNoticeAndPreferences();else if("optin"===(null==(n=$.r.value)||null==(r=n.group)?void 0:r.name)&&this.shouldConsentBeCollected())this._showNoticeAndPreferences();else{var s;this.services.NoticeService.hide(),null!=(s=at.v.value)&&s.showWhenConsentIsMissing&&this.services.PreferencesService.hide()}}shouldNoticeBeShown(){var e,t;return this.hasStatusesBeforeCollection?this.shouldOptoutNoticeBeShown():"optin"===(null==(e=$.r.value)||null==(t=e.group)?void 0:t.name)&&this.shouldConsentBeCollected()}handleUserStatusUpdated(){this.hasStatusesBeforeCollection?(this._syncSpiPrefsState(),ft.value&&this.services.NoticeService.hide()):super.handleUserStatusUpdated()}}var Qn=i(50513),Xn=i(80029),er=e=>{var t,n,r,{actions:s}=e,o=(null==(r=Jt.$.value)?void 0:r.sort((e,t)=>{var n,r,s=null==(n=e.name)?void 0:n.toLowerCase(),o=null==(r=t.name)?void 0:r.toLowerCase();return so?1:0}))||[];s.setVendors(o);var i=(null==(t=at.v.value)||null==(n=t.categories)?void 0:n.map(e=>(0,Qn.c)(e)).filter(e=>"category"===(null==e?void 0:e.type)))||[];s.setCategories(i),(0,Xn.S)({actions:s,vendors:o,categoryOrPurpose:pe.B.value.optout.default,vendor:pe.B.value.optout.default,spi:pe.B.value.optin.default})};class tr extends v.A{configure(e){var t;if(!e||"object"!=typeof e)return null;if("object"==typeof e.configByCountry&&null!=(t=_e.h.value)&&t.country){var n=e.configByCountry[_e.h.value.country.toUpperCase()];n&&(e=(0,l.or)(e,n))}if(e.privacyPolicyURL&&(0,l.hZ)(e,"website.privacyPolicyURL",e.privacyPolicyURL),e.website||e.app){var r=(0,l.or)(e.website,e.app);e.regulations&&(r.regulations=e.regulations),e.regulation&&(r.regulation=e.regulation),e.version&&(this.services.WebsiteService=new Yn(this.store,this.actions,this.services)),this.services.WebsiteService.configure(r)}return"object"==typeof e.sync&&this.services.SyncService.configure(e.sync),e.notice&&this.services.NoticeService.configure(e.notice),e.preferences&&this.services.PreferencesService.configure(e.preferences),this.services.ComponentsService.configure(e.components),this.services.EventsService.configure(e.events),(e.website||e.app)&&e.version&&E.o.value&&er({actions:this.actions}),e}}var nr,rr=i(39838),sr=function(e){void 0===e&&(e="en"),nr||((nr=document.querySelector("#didomi-host"))?ir(nr,e):((nr=document.createElement("div")).id="didomi-host",ir(nr,e),document.body.insertBefore(nr,document.body.firstChild)))},or=()=>{nr&&nr.innerHTML&&(nr.innerHTML="")},ir=(e,t)=>{e&&e.setAttribute&&(e.classList.add("didomi-host"),e.setAttribute("data-nosnippet","true"),e.setAttribute("aria-hidden","true"),e.setAttribute("lang",t),e.setAttribute("data-lang-dir",(0,rr.i)(t)))},ar={cpa:()=>i.e("ui-cpa").then(i.bind(i,32512)),ctdpa:()=>i.e("ui-ctdpa").then(i.bind(i,10896)),ctv:e=>i(75604)("./"+e+"/ctv/"),cpra:()=>i.e("ui-cpra").then(i.bind(i,67216)),vcdpa:()=>i.e("ui-vcdpa").then(i.bind(i,88437)),underage:()=>i.e("ui-underage").then(i.bind(i,3902)),web:e=>i(70460)("./"+e+"/web/")},ur=["1.0.0","2.0.0"],lr=["cpra","dpdpa","fdbr","icdpa","mcdpa","nhpa","njdpa","ocpa","tdpsa","ucpa","mncdpa","modpa","ridtppa","incdpa","kcdpa","ndpa","tipa"],dr={"1.0.0":[{module:"cpra",regulations:lr},{module:"web",regulations:["gdpr"]},{module:"cpa",regulations:["cpa"]},{module:"vcdpa",regulations:["vcdpa"]},{module:"ctdpa",regulations:["ctdpa"]}],"2.0.0":[{module:"web",regulations:[...lr,"cpa","ctdpa","gdpr","vcdpa"]}]},cr=(0,C.vP)(null),pr=function(e,t){var r,s,o,{regulation:i}=void 0===t?{}:t;e||i?["ctv","web","underage"].includes(e)?cr.value=e:cr.value=(e=>{var{version:t,regulation:n}=e,r=dr[t].find(e=>{var{regulations:t}=e;return t.includes(n)});return r?r.module:null})({version:(o=null==(r=n.bK.value)||null==(s=r.ui)?void 0:s.version,ur.includes(o)?o:"1.0.0"),regulation:i}):cr.value=null};class vr extends v.A{constructor(){super(...arguments),this._uiModule=null,this._postRenderActions=[]}componentWillMount(){this._postRenderActions=[]}reloadUIModule(e,t){var n,{show:r,postRenderAction:o}=void 0===t?{show:!1}:t;e&&this.isRendered()&&e!==cr.value&&(or(),null==(n=document.querySelector("#didomi-css"))||n.remove(),sr(s.H.value),this._uiModule=null,this.actions.resetUI(),pr(e),r&&this.show(o))}show(e){void 0===e&&(e=()=>{}),this.isRendered()?e():cr.value||this.isLoading()||this.isLoaded()?(e&&this._postRenderActions.push(e),this.isLoading()||this.isLoaded()||this.loadUI(),this.scheduleRender()):console.warn(G.a.didomiPrefix+"No UI module is available for the current configuration. The notice will not be displayed.")}scheduleRender(){this.isLoaded()?this.renderUI():this.isRenderScheduled()||(0,F.Oo)("ui.loaded",()=>{this.renderUI()})}preLoad(){this.isRendered()||this.isLoaded()||this.isLoading()||this.loadUI()}renderUI(){(0,F.Oo)("ui.mounted",()=>{this.actions.renderedUI(),this.completePostRenderActions().then(()=>{(0,F.Ic)("ui.ready")})});try{this._uiModule(nr,this.store,this.services)}catch(e){throw new Error("Error while rendering the SDK UI: Module not loaded")}}completePostRenderActions(){var e=this;return(0,t.A)(function*(){e._postRenderActions.length>0&&Promise.all(e._postRenderActions.map(function(){var e=(0,t.A)(function*(e){return"function"==typeof e?yield e():Promise.resolve()});return function(t){return e.apply(this,arguments)}}())).then(()=>{e._postRenderActions=[]})})()}isLoading(){return(0,l.Jt)(this.store.getState(),"ui.loading")||!1}isLoaded(){return(0,l.Jt)(this.store.getState(),"ui.loaded")||!1}isRenderScheduled(){return(0,F.ew)("ui.loaded")>=1&&!this.isRendered()}isRendered(){return(0,l.Jt)(this.store.getState(),"ui.rendered")||!1}loadUI(){return cr.value?(this.actions.loadingUI(),(e=>{var{module:t,locale:n}=e,r=ar[t];return r?r(n):null})({module:cr.value,locale:s.H.value}).then(e=>{this._uiModule=e.default,this.actions.loadedUI(),(0,F.Ic)("ui.loaded")})):null}}var fr=i(88517),hr=null,gr=null,mr=()=>{if(!hr)throw new Error("@didomi/sdk-consents-api: initConsentsApi() must be called before using the API");return hr},br=()=>{if(!gr)throw new Error("@didomi/sdk-consents-api: initConsentsApi() must be called before using the API");return gr},yr=function(){var e=(0,t.A)(function*(e){var t=yield fetch(e.url,{method:e.method,headers:e.headers,body:e.body,mode:"cors"}),n=yield t.text(),r=null;try{r=JSON.parse(n)}catch(e){}return{status:t.status,data:r,text:n}});return function(t){return e.apply(this,arguments)}}(),_r=function(t){void 0===t&&(t={});var n={};return t&&(t.purposes&&Array.isArray(t.purposes)&&(n.purposes={},t.purposes.forEach(t=>{n.purposes[t.id]=(0,e.A)({},t,{preferences:{},channels:{}}),t.channels&&Array.isArray(t.channels)&&t.channels.forEach(r=>{n.purposes[t.id].channels[r.id]=(0,e.A)({},r)}),t.preferences&&Array.isArray(t.preferences)&&t.preferences.forEach(r=>{n.purposes[t.id].preferences[r.id]=(0,e.A)({},r,{channels:{}}),r.channels&&Array.isArray(r.channels)&&r.channels.forEach(e=>{n.purposes[t.id].preferences[r.id].channels[e.id]=e})})})),t.channels&&Array.isArray(t.channels)&&(n.channels={},t.channels.forEach(e=>{n.channels[e.id]=e}))),n},Ir=t=>({purposes:Object.keys(t.purposes||{}).map(n=>{var{preferences:r,channels:s}=t.purposes[n];return(0,e.A)({},t.purposes[n],{preferences:Object.keys(r||{}).map(t=>{var n=r[t];return(0,e.A)({},n,{channels:Object.keys(n.channels||{}).map(t=>(0,e.A)({},n.channels[t]))})}),channels:Object.keys(s||{}).map(e=>s[e])})}),channels:Object.keys(t.channels||{}).map(e=>t.channels[e])});function Sr(){throw new Error("Cycle detected")}function wr(){if(Pr>1)Pr--;else{for(var e,t=!1;void 0!==Cr;){var n=Cr;for(Cr=void 0,kr++;void 0!==n;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&xr(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(kr=0,Pr--,t)throw e}}var Ar,Cr,Pr=0,kr=0,Er=0;function Or(e){if(void 0!==Ar){var t=e.n;return void 0===t||t.t!==Ar?(t={i:0,S:e,p:Ar.s,n:void 0,t:Ar,e:void 0,x:void 0,r:t},void 0!==Ar.s&&(Ar.s.n=t),Ar.s=t,e.n=t,32&Ar.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=Ar.s,t.n=void 0,Ar.s.n=t,Ar.s=t),t):void 0}}function Tr(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Lr(e){return new Tr(e)}function xr(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Rr(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Ur(e){for(var t,n=e.s;void 0!==n;){var r=n.p;-1===n.i?(n.S.U(n),void 0!==r&&(r.n=n.n),void 0!==n.n&&(n.n.p=r)):t=n,n.S.n=n.r,void 0!==n.r&&(n.r=void 0),n=r}e.s=t}function Dr(e){Tr.call(this,void 0),this.x=e,this.s=void 0,this.g=Er-1,this.f=4}function Nr(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Pr++;var n=Ar;Ar=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Br(e),t}finally{Ar=n,wr()}}}function Br(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Nr(e)}function Vr(e){if(Ar!==this)throw new Error("Out-of-order effect");Ur(this),Ar=e,this.f&=-2,8&this.f&&Br(this),wr()}function jr(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Tr.prototype.h=function(){return!0},Tr.prototype.S=function(e){this.t!==e&&void 0===e.e&&(e.x=this.t,void 0!==this.t&&(this.t.e=e),this.t=e)},Tr.prototype.U=function(e){if(void 0!==this.t){var t=e.e,n=e.x;void 0!==t&&(t.x=n,e.e=void 0),void 0!==n&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}},Tr.prototype.subscribe=function(e){var t=this;return function(e){var t=new jr(e);try{t.c()}catch(e){throw t.d(),e}return t.d.bind(t)}(function(){var n=t.value,r=32&this.f;this.f&=-33;try{e(n)}finally{this.f|=r}})},Tr.prototype.valueOf=function(){return this.value},Tr.prototype.toString=function(){return this.value+""},Tr.prototype.toJSON=function(){return this.value},Tr.prototype.peek=function(){return this.v},Object.defineProperty(Tr.prototype,"value",{get(){var e=Or(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(Ar instanceof Dr&&function(){throw new Error("Computed cannot have side-effects")}(),e!==this.v){kr>100&&Sr(),this.v=e,this.i++,Er++,Pr++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{wr()}}}}),(Dr.prototype=new Tr).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===Er)return!0;if(this.g=Er,this.f|=1,this.i>0&&!xr(this))return this.f&=-2,!0;var e=Ar;try{Rr(this),Ar=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return Ar=e,Ur(this),this.f&=-2,!0},Dr.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Tr.prototype.S.call(this,e)},Dr.prototype.U=function(e){if(void 0!==this.t&&(Tr.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},Dr.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Dr.prototype.peek=function(){if(this.h()||Sr(),16&this.f)throw this.v;return this.v},Object.defineProperty(Dr.prototype,"value",{get(){1&this.f&&Sr();var e=Or(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),jr.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},jr.prototype.S=function(){1&this.f&&Sr(),this.f|=1,this.f&=-9,Nr(this),Rr(this),Pr++;var e=Ar;return Ar=this,Vr.bind(this,e)},jr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Cr,Cr=this)},jr.prototype.d=function(){this.f|=8,1&this.f||Br(this)};var Mr=(e,t,n)=>function(e,t,n){t.split&&(t=t.split("."));for(var r,s,o=0,i=t.length,a=e;ofunction(e,t,n,r,s){for(t=t.split?t.split("."):t,r=0;r"object"==typeof e&&null!==e&&e.constructor===Object;function Wr(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(n in e&&zr(e[n])&&zr(t[n])?e[n]=Wr(e[n],t[n]):e[n]=t[n]);return e}function Gr(e){return JSON.parse(JSON.stringify("object"==typeof e?e:{}))}function Hr(e,t){return Wr(Gr(e),t)}var Kr=(e,t)=>t.reduce((t,n)=>(Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]),t),{}),Jr=Lr({}),qr=Lr(!1),Zr=Lr(null),$r=Lr(null),Yr=e=>{qr.value=e},Qr=function(){var e=(0,t.A)(function*(e){var{mergeUsers:t=!1}=void 0===e?{}:e,{apiPath:n,authToken:r}=mr(),{emitEvent:s,emitAPIError:o,updateUserId:i}=br(),a=r.value,u=a&&(e=>{try{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(t).split("").map(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(n)}catch(e){return console.error("Unable to parse JWT token",e),null}})(a);if(a&&u){var l=n+"/consents/users";t&&(l=l+"/"+u.sub+"?$merge_users=true");var d=yield yr({method:"GET",url:l,headers:{Authorization:"Bearer "+a,"Content-Type":"application/json"}}),c=null;if(404===d.status&&t)Yr(!0),s("remoteconsent.authenticated",!0);else if(200===d.status){var p;try{c=d.data,t||(c=Fr(c,"data",[]))[0]&&(c=c[0])}catch(e){}c&&(c.consents=_r(Fr(c,"consents",null))),(e=>{Jr.value=Hr(Jr.value,e)})(c),Yr(!0),i(null==(p=c)?void 0:p.id),s("remoteconsent.authenticated",!0)}else Yr(!1),s("remoteconsent.authenticated",!1),o(d.status,"getRemoteConsentUser");return s("remoteconsent.loaded"),c}return Yr(!1),s("remoteconsent.loaded"),s("remoteconsent.authenticated",!1),null});return function(t){return e.apply(this,arguments)}}(),Xr=function(){var e=(0,t.A)(function*(e){var{emitEvent:t}=br();yield Qr(e),t("remoteconsent.changed")});return function(t){return e.apply(this,arguments)}}();class es extends v.A{constructor(e,t,n){super(e,t,n),this.componentsList=["didomi-base-checkbox","didomi-base-radio","didomi-block","didomi-button","didomi-card","didomi-cards","didomi-checkbox","didomi-checkboxes","didomi-container","didomi-email-login","didomi-header","didomi-image","didomi-modal","didomi-radio","didomi-radios","didomi-save","didomi-text","didomi-section","didomi-purpose","didomi-preference","didomi-container-headless"]}configure(e){e||(e={}),Array.from(document.querySelectorAll(this.componentsList.join(", "))).length>0&&(e.helpersEnabled="boolean"!=typeof e.helpersEnabled||e.helpersEnabled,e.componentsEnabled="boolean"!=typeof e.componentsEnabled||e.componentsEnabled),this.actions.setComponentsConfig(e)}getRemoteConsentsAndInitComponentsModule(){return Qr({mergeUsers:!0}).then(()=>{this.initComponentsModule(!0)})}initComponentsModule(e){void 0===e&&(e=!1);var t=(0,r.M)("apiPath"),n=Promise.resolve();if((0,l.Jt)(this.store.getState(),"components.helpersEnabled")||e){var o=(0,l.Jt)(this.store.getState(),"components.version");n=this.importComponentsByVersion(o).then(n=>(0,n.default)({locale:s.H.value,apiBaseURL:t,loadComponents:(0,l.Jt)(this.store.getState(),"components.componentsEnabled")||e,userId:fr.J.value}).then(e=>{Object.assign(window.Didomi,e)}))}return n.then(()=>{(0,F.Ic)("components.loaded")})}importComponentsByVersion(e){return void 0===e&&(e=1),1===e?this.importComponentsV1():this.importComponents(e)}importComponentsV1(){return i.e("components").then(i.bind(i,5845))}importComponents(e){var t=(0,r.M)("pmpSdkPath");return new Promise((n,r)=>{var s,o=document.createElement("script");o.setAttribute("type","text/javascript"),o.setAttribute("async",!0),o.setAttribute("charset","utf-8"),o.setAttribute("src",t+"/v"+e+"/loader/index.js");var i=null==(s=Ce.U.value)?void 0:s.nonce;i&&o.setAttribute("nonce",i),window.Didomi.onPMPSDKLoaded=()=>{n({default:window.Didomi.initPMPSDK})},o.onerror=r,document.body.appendChild(o)})}}var ts=i(98587),ns=(0,C.EW)(()=>{var e,t;return null!=(e=null==(t=n.bK.value)?void 0:t.sync)?e:{}}),rs=["organizationUserId"],ss={organizationUserId:"organization_user_id",organizationUserIdAuthAlgorithm:"organization_user_id_algorithm",organizationUserIdAuthSid:"organization_user_id_sid",organizationUserIdAuthSalt:"organization_user_id_salt",organizationUserIdAuthDigest:"organization_user_id_digest",organizationUserIdExp:"organization_user_id_exp",organizationUserIdIv:"organization_user_id_iv"};class os extends v.A{constructor(e,t,n){super(e,t,n)}configure(e){e&&((null==e.frequency||"number"!=typeof e.frequency||Number.isNaN(e.frequency)||e.frequency<21600)&&(e.frequency=21600),this.actions.setSyncConfig(e))}getMappedAuthorizationParameters(e){var t={};for(var n of Object.keys(ss))e&&e[n]&&(t[ss[n]]=e[n]);return t}getAuthorizationParameters(){var e=Qt.value,t=(0,ts.A)(e,rs);return this.getMappedAuthorizationParameters(t)}getSyncData(t){var{agent:n,apiPath:r,domain:s,organizationUserId:o,token:i,tcfcs:a,tcfv:u,timeout:l,authParams:d,synchronizedUsers:c,tokenUserAuthParams:p,signKey:v,regulations:f}=t,h=r+"/sync",g=ye.K.value?h+"?key="+encodeURIComponent(ye.K.value):h;return new Promise(t=>{fe.ajax({method:"POST",url:g,body:JSON.stringify({source:{domain:s,key:ye.K.value,type:"sdk-web"},user:(0,e.A)({id:i.user_id,organization_user_id:o},d,{agent:n,token:{created:i.created,updated:i.updated,purposes:i.purposes,purposes_li:i.purposes_li,vendors:i.vendors,vendors_li:i.vendors_li},tcfcs:a,tcfv:u,synchronized_users:c,token_user:p,sign_key:v,regs:f})}),timeout:l,headers:{"Content-Type":"application/json"},cors:!0},(e,n)=>{if(201===e){var r;try{r=JSON.parse(n)}catch(e){return console.error(G.a.didomiPrefix+"Error while parsing sync response"),t({consents:null,errorMessage:"Error while parsing sync response"})}if(!1===r.synced){var{created:s,updated:o,consents:i}=r.user.token,a=o||s;t({consents:{created:a,updated:a,purposes:{consent:{enabled:i.purposes.enabled,disabled:i.purposes.disabled},legitimate_interest:{enabled:i.purposes_li.enabled,disabled:i.purposes_li.disabled}},vendors:{consent:{enabled:i.vendors.enabled,disabled:i.vendors.disabled},legitimate_interest:{enabled:i.vendors_li.enabled,disabled:i.vendors_li.disabled}},action:"sync"},tcfcs:r.user.tcfcs})}else t({consents:null,regenerateSignature:r.regenerate_signature})}else 404===e?t({consents:null,reset:!0}):(console.error(G.a.didomiPrefix+"Syncing HTTP error "+e),(0,F.KU)(e,"getSyncData"),t({consents:null,errorMessage:"Syncing HTTP error "+e}))})})}run(t,n){void 0===t&&(t=()=>{}),void 0===n&&(n=!0);var s=this.store.getState();if(Gt(s)){var o,i,a,u,d,c=[];if(null!=(o=$.r.value)&&o.name)c.push(null==(d=$.r.value)?void 0:d.name);return this.getSyncData({agent:navigator.userAgent,apiPath:(0,r.M)("apiPath"),domain:be(s),organizationUserId:null==(i=H.G.value)?void 0:i.organizationUserId,token:I.II.value,tcfcs:Ae.X.value?_.M.value:null,tcfv:Ae.X.value?we.q.value.majorVersion:null,timeout:zt(s),authParams:this.getAuthorizationParameters(),synchronizedUsers:null==(a=H.G.value)||null==(u=a.synchronizedUsers)?void 0:u.map(t=>(0,e.A)({organization_user_id:t.organizationUserId},this.getMappedAuthorizationParameters(t))),tokenUserAuthParams:this.getMappedAuthorizationParameters(jt.value),signKey:this.services.SignatureService.getCurrentSignatureKey(),regulations:c}).then(e=>{var r,s,o=!!e.consents,i=((e,t)=>()=>{if(e){var n=t();return n||console.log(G.a.didomiPrefix+"Do not acknowledge a sync via syncAcknowledged more than once"),n}return console.log(G.a.didomiPrefix+"Do not acknowledge a sync via syncAcknowledged when the user status has not been modified (statusApplied is false)"),!1})(o,this.services.EventsService.sendSyncAcknowledged.bind(this.services.EventsService)),a=(0,l.Go)(I.II.value);(a.sync=(new Date).toISOString(),(0,I.vY)(a),e.consents)?(ns.value.useSyncedTcfcs&&e.tcfcs?(s=e.tcfcs,Kn.value=s):Jn(),this.services.ConsentService.setUserStatus(e.consents),this.services.StorageService.flushTokenToStorage(),this.services.SignatureService.sign()):e.reset&&null!=(r=Ce.U.value)&&r.ouidAsPrimaryIfPresent?this.services.StorageService.reset():e.regenerateSignature?this.services.SignatureService.sign():this.services.StorageService.flushTokenToStorage();if(Jn(),e.errorMessage?(0,F.Ic)("sync.error",e.errorMessage):(0,F.Ic)("sync.done"),e.errorMessage){var u={statusApplied:!1,syncError:e.errorMessage,syncAcknowledged:()=>!1};t(u),n&&(0,F.sF)("sync.ready",u)}else{var d={statusApplied:o,syncAcknowledged:i};t(d),n&&(0,F.sF)("sync.ready",d)}}).catch(()=>{var e="Error while getting sync data";(0,F.Ic)("sync.error",e);var r={statusApplied:!1,syncError:e,syncAcknowledged:()=>!1};t(r),n&&(0,F.sF)("sync.ready",r)})}t({statusApplied:!1,syncAcknowledged:()=>!1}),n&&(0,F.sF)("sync.ready")}clearLastSyncDate(){I.II.value.sync&&((0,I.vY)((0,e.A)({},I.II.value,{sync:void 0})),this.services.StorageService.flushTokenToStorage())}}class is extends v.A{constructor(e,t,n){super(e,t,n)}setSignature(e){this.actions.setSignature(e)}updateCookie(e){var{signature:t,dcsUserId:n,trigger:r}=e;this.actions.setSignature({dcsUserId:n,signature:t}),this.services.StorageService.flushTokenToStorage(),"consent-changed"===r&&(0,F.Ic)("consent.changedwithsignature"),(0,F.Ic)("signature.consentsigned")}getSignatureParams(){var e=this.services.StorageService.getCookies(),t=(0,Bt.Sd)(null==e?void 0:e.didomiToken),n=H.G.value.dcsUser;return t&&n?{dcs:t,dcsUser:n.organizationUserId?this.services.SyncService.getMappedAuthorizationParameters(n):n}:null}sign(){var e;if(null!=(e=Se.O.value)&&e.signatureEnabled){var t=this.getSignatureParams();if(t){var n=this.store.getState(),s=(0,r.M)("apiPath")+"/sign",o=ye.K.value?s+"?key="+encodeURIComponent(ye.K.value):s;fe.ajax({method:"POST",url:o,body:JSON.stringify({source:{domain:be(n),key:ye.K.value,type:"sdk-web"},dcs_user:t.dcsUser,dcs:t.dcs}),headers:{"Content-Type":"application/json"},cors:!0},(e,t)=>{if(201===e){var n=JSON.parse(t);this.updateCookie({dcsUserId:n.dcs_user,signature:n.signature,trigger:"consent-changed"})}else(0,F.KU)(e,"createSignatureSync"),(0,F.Ic)("signature.error","Signature generation fail "+e)})}}}getCurrentSignatureKey(){var e=this.getCurrentSignaturePropsFromCookie();return e.signature?e.signature[0]:null}getCurrentSignaturePropsFromCookie(){var e;if(null==(e=Se.O.value)||!e.signatureEnabled)return{};var t=this.services.StorageService.getCookies();if(null!=t&&t.didomiToken){var n=(0,Bt.dD)(t.didomiToken),r=(0,Bt.H3)(t.didomiToken);if(n&&r)return{signature:n,dcsUserId:r}}return{}}checkUnsignedConsent(){var e;if(null!=(e=Se.O.value)&&e.signatureEnabled&&H.G.value.dcsUser){var t=this.services.StorageService.getCookies();null!=t&&t.didomiToken&&t.didomiToken.indexOf("~")<0&&this.services.StorageService.reset()}}}var as=e=>function(){try{e(...arguments)}catch(e){console.error(G.a.didomiPrefix+"Error in didomiOnReady function.",e)}};function us(e){if(!window.didomiOnReady||!0!==window.didomiOnReady.stub){if(Array.isArray(window.didomiOnReady))for(var t of window.didomiOnReady){if("function"==typeof t)as(t)(e)}window.didomiOnReady={stub:!0,push:function(){for(var t=arguments.length,n=new Array(t),r=0;r{s(),delete r.resume},setTimeout(()=>{r.resume&&(console.error(G.a.didomiPrefix+"10 seconds timeout for loading custom SDK has expired"),(0,ls.k0)(ds.Cb.ERROR_CUSTOM_SDK_LOAD_TIMEOUT,{reason:G.a.didomiPrefix+"10 seconds timeout for loading custom SDK has expired"}))},1e4)):s()}var ps=e=>e.replace(/&/g,"&").replace(//g,">").replace(/'/g,"'"),vs=e=>{if("object"==typeof e){var t=JSON.stringify(e);return JSON.parse(ps(t))}return"string"==typeof e?ps(e):e};function fs(e){return Array.isArray(e)?e.map(e=>vs(e)):"string"==typeof e?vs(e):e}function hs(e,t,n,r){if(r&&r.data){var s,o="string"==typeof r.data;try{s=o?JSON.parse(r.data):r.data}catch(e){return}if(s[e]){var i=s[e];n(i.command,fs(i.parameter),(e,n)=>{var s={[t]:{returnValue:e,success:n,callId:i.callId}};r.source&&"function"==typeof r.source.postMessage?r.source.postMessage(o?JSON.stringify(s):s,"*"):window.postMessage(o?JSON.stringify(s):s,"*")})}}}function gs(e,t,n,r){if("function"==typeof r){Q("__cmp-call");var s=e&&e[t];"function"!=typeof s?r(null,!1):r(s.apply(e,Array.isArray(n)?n:void 0),!0)}}function ms(e){!function(e,t,n,r){if(window.addEventListener?window.addEventListener("message",hs.bind(this,e,t,n),!1):window.attachEvent("onmessage",hs.bind(this,e,t,n)),window.DidomiSanitizing={sanitizeString:fs},Array.isArray(r)&&r.length>0)for(var s of r)n(s.command,fs(s.parameter),s.callback,s.version,!0)}("__cmpCall","__cmpReturn",gs.bind(this,e),window.__cmpBuffer)}var bs=i(74921),ys=(e,t)=>{"string"==typeof e&&"function"==typeof t&&(0,F.on)(e,t,{shouldYield:!0,shouldBeSafe:!0})},_s=!1,Is=()=>{var e,t,n=(e=/didomi_country=([a-zA-Z]{2})/.exec(window.location.search),t=/didomi_region=([a-zA-Z]{2})/.exec(window.location.search),{country:e?e[1]:null,region:t?t[1]:null}),r={country:"string"==typeof window.didomiCountry&&2===window.didomiCountry.length?window.didomiCountry.toUpperCase():null,region:"string"==typeof window.didomiRegion&&window.didomiRegion.length>0?window.didomiRegion.toUpperCase():null},s=n.country||r.country||null,o=s&&(n.region||r.region)||null;(0,_e.Y)({country:s,region:o})},Ss=i(62846),ws=i(35968),As=i(99124),Cs=i(70008),Ps=i(6263),ks=i(93271),Es=(e,t)=>{var n=()=>e(t(Ps.A.value||P.h.value));if(Ps.A.value)try{n()}catch(e){}else(0,ks.oW)().then(n)},Os=(e,t)=>{var n;return null==e||null==(n=e.filter(e=>!t||e.namespace===t))?void 0:n.filter(e=>"object"==typeof e&&!!e)},Ts=i(38311),Ls=(0,C.vP)(null);(0,C.QZ)(()=>{Ls.value=(()=>{if(H.G.value.authToken)return H.G.value.authToken;try{var e,t=(null==(e=H.G.value.auth)?void 0:e.tokenName)||"token",n=(0,Pt.FY)(t);if(n)return n}catch(e){}return(0,Ts._S)("didomi_auth_token")||null})()});var xs=e=>{Ls.value=e},Rs=i(67582),Us=t=>{if(t){var r,{organizationUserId:s,organizationUserIdAuthAlgorithm:o,organizationUserIdAuthSid:i,organizationUserIdAuthSalt:a,organizationUserIdAuthDigest:u,organizationUserIdExp:d,organizationUserIdIv:c,isUnderage:p,isLoggedIn:v,ageGroup:f,userContext:h}=t||{},g=(e=>{if(void 0!==e){if((0,l.Qd)(e)){var t={},n=[];return Object.keys(e).forEach(r=>{var s=e[r];(0,Rs.u)(s)?t[r]=s:n.push(r)}),n.length>0&&console.warn(G.a.didomiPrefix+"setUser received invalid userContext.attributes value(s) for: "+n.join(", ")+". Expected a non-empty string. Those attributes are ignored."),t}console.warn(G.a.didomiPrefix+'setUser expects userContext.attributes to be an object of string values, e.g. { subscriptionTier: "free" }. The value is ignored.')}})(null==h?void 0:h.attributes);(0,n.xF)({user:(0,e.A)({},(null==(r=n.bK.value)?void 0:r.user)||{},(0,e.A)({organizationUserId:s,organizationUserIdAuthAlgorithm:o,organizationUserIdAuthSid:i,organizationUserIdAuthSalt:a,organizationUserIdAuthDigest:u,organizationUserIdExp:d,organizationUserIdIv:c},void 0!==p&&{isUnderage:p},void 0!==v&&{isLoggedIn:v},void 0!==f&&{ageGroup:f},void 0!==g&&{userContext:{attributes:g}}))})}},Ds=i(16382),Ns=["notice.enable","notice.showDataProcessing","experiment.group","app.vendors.iab.version","app.alwaysDisplayActionButtons","user.externalConsent.value","sync.enabled"],Bs=()=>{var e="didomiConfig",t=window.location.href;if(!t.includes(e))return null;var n,r=(0,Pt.vA)(t,e),s={};if(Object.prototype.hasOwnProperty.call(r,e))try{s=JSON.parse(r[e])}catch(t){console.error(G.a.didomiPrefix+'Invalid JSON from query-string parameter "'+e+'": '+t.message)}for(var o in r)if(o.startsWith(e+".")&&!o.includes("__proto__")&&!o.includes("constructor"))try{var i=JSON.parse(r[o]);(0,l.hZ)(s,o.replace(e+".",""),i)}catch(t){var a=r[o];(0,l.hZ)(s,o.replace(e+".",""),a)}return n=s,Ns.reduce((e,t)=>{var r=(0,l.Jt)(n,t);return void 0!==r&&(e=e||{},(0,l.hZ)(e,t,r)),e},null)},Vs=()=>{var e,t,n,r,s,o,i,a,u,d,c,p,v={},f=(0,Ds.V)();null!=f&&f.config&&"object"==typeof(null==f?void 0:f.config)&&(0,l.zw)(v,f.config),window.didomiConfig&&"object"==typeof window.didomiConfig&&((0,l.zw)(v,window.didomiConfig),e=window.didomiConfig,p=[ds.Cb.WINDOW_DIDOMI_CONFIG],null!=e&&null!=(t=e.app)&&null!=(n=t.vendors)&&n.custom&&p.push(ds.Cb.WINDOW_DIDOMI_CONFIG_CUSTOM_VENDORS),null!=e&&null!=(r=e.app)&&r.customPurposes&&p.push(ds.Cb.WINDOW_DIDOMI_CONFIG_CUSTOM_PURPOSES),null!=e&&null!=(s=e.app)&&s.essentialPurposes&&p.push(ds.Cb.WINDOW_DIDOMI_CONFIG_ESSENTIAL_PURPOSES),null!=e&&null!=(o=e.app)&&o.disabledPurposes&&p.push(ds.Cb.WINDOW_DIDOMI_CONFIG_DISABLED_PURPOSES),null!=e&&null!=(i=e.app)&&null!=(a=i.vendors)&&a.iab&&p.push(ds.Cb.WINDOW_DIDOMI_CONFIG_IAB),null!=e&&null!=(u=e.app)&&null!=(d=u.vendors)&&null!=(c=d.iab)&&c.restrictions&&p.push(ds.Cb.WINDOW_DIDOMI_CONFIG_IAB_RESTRICTIONS),(0,ls.Ej)(p));var h=Bs();h&&(0,l.zw)(v,h);var g=(e=>{var t;if("object"==typeof(null==e?void 0:e.configByCountry)&&null!=(t=_e.h.value)&&t.country){var n,r=null==e?void 0:e.configByCountry[null==(n=_e.h.value)?void 0:n.country.toUpperCase()];if(r)return r}})(v);g&&(v=(0,l.zw)(v,g));var m=(e=>{var t,n,r,s,o,i;if(null==e?void 0:e.version)return null==e||null==(i=e.regulation)?void 0:i.name;var a=(null==e?void 0:e.regulations)||(null==e||null==(t=e.website)?void 0:t.regulations)||(null==e||null==(n=e.app)?void 0:n.regulations)||{},u=(null==(r=a.gdpr)?void 0:r.additionalCountries)||[],l=Array.isArray(window.didomiGeoRegulations)?window.didomiGeoRegulations:[],d=!!a&&!!window.gdprAppliesGlobally||(null==u?void 0:u.includes(null==(s=_e.h.value)?void 0:s.country))||(null==l?void 0:l.includes("gdpr")),c=!!a&&!!window.gdprAppliesGlobally||!1!==(null==a||null==(o=a.gdpr)?void 0:o.enabled);return d&&c?"gdpr":null})(v);return m&&(0,l.hZ)(v,"regulation.name",m),v},js=i(34189),Ms={},Fs=e=>Ms[e];(0,C.QZ)(()=>{var e=js.L.value;Object.values(Ms).forEach(t=>((e,t)=>{var n,r=!0===(null==t||null==(n=t.vendors[e.didomiId])?void 0:n.enabled);e.enabled!==r&&(e.enabled=r,e.listeners.forEach(t=>t&&t({id:e.didomiId,enabled:r})))})(t,e))});class zs{constructor(e){this.setCurrentUserStatus=e,this.initialUserStatus=js.L.value,this.pendingUpdates={purposes:{},vendors:{}}}enablePurpose(e){var t;return this.initialUserStatus.purposes.hasOwnProperty(e)?(null!=(t=this.pendingUpdates.purposes)[e]||(t[e]={}),this.pendingUpdates.purposes[e].enabled=!0,this):(console.error(G.a.didomiPrefix+"enablePurpose ignored due to invalid purpose:",e),this)}enablePurposes(e){return e.forEach(e=>this.enablePurpose(e)),this}disablePurpose(e){var t;return this.initialUserStatus.purposes.hasOwnProperty(e)?(null!=(t=this.pendingUpdates.purposes)[e]||(t[e]={}),this.pendingUpdates.purposes[e].enabled=!1,this):(console.error(G.a.didomiPrefix+"disablePurpose ignored due to invalid purpose:",e),this)}disablePurposes(e){return e.forEach(e=>this.disablePurpose(e)),this}enableVendor(e){var t;return this.initialUserStatus.vendors.hasOwnProperty(e)?(null!=(t=this.pendingUpdates.vendors)[e]||(t[e]={}),this.pendingUpdates.vendors[e].enabled=!0,this):(console.error(G.a.didomiPrefix+"enableVendor ignored due to invalid vendor:",e),this)}enableVendors(e){return e.forEach(e=>this.enableVendor(e)),this}disableVendor(e){var t;return this.initialUserStatus.vendors.hasOwnProperty(e)?(null!=(t=this.pendingUpdates.vendors)[e]||(t[e]={}),this.pendingUpdates.vendors[e].enabled=!1,this):(console.error(G.a.didomiPrefix+"disableVendor ignored due to invalid vendor:",e),this)}disableVendors(e){return e.forEach(e=>this.disableVendor(e)),this}commit(){try{return this.setCurrentUserStatus((0,e.A)({},(0,l.zw)((0,l.Go)(js.L.value),this.pendingUpdates),{action:"external"}))}catch(e){return console.error(G.a.didomiPrefix+"Failed to update user status:",e),!1}}}var Ws=()=>{var t=!1,r=!1;return(0,F.Oo)("notice.shown",()=>{var e;null!=(e=it.l.value)&&e.enable&&(t=!0)}),(0,F.Oo)("notice.hidden",()=>{r=!0}),(0,F.Oo)("preferences.shown",()=>{t=!0}),(0,F.Oo)("preferences.hidden",()=>{r=!0}),new Promise(s=>{i.e("gpp-library").then(i.bind(i,63261)).then(o=>{var i,a,{initGPPCmpApi:u,cmpUIShownHandler:l,cmpUIHiddenHandler:d,updateGPP:c,getGppString:p}=o;u({gppConfig:null==(i=n.bK.value)||null==(a=i.integrations)?void 0:a.gpp,cmpID:G.a.defaultCMPID,cmpVersion:G.a.defaultCMPVersion,yieldToMain:!0});var v=()=>{c((0,e.A)({},js.L.value,{gpc:!0===navigator.globalPrivacyControl})),(0,Te.K)(p())};(0,C.QZ)(function(){var{regulation:e,consent_string:t}=js.L.value;"gdpr"===e&&te.y.value&&!t||(this.dispose(),v())}),r?d():t&&l(),(0,F.on)("internal.consent.updated",()=>{v()}),(0,F.on)("notice.shown",()=>{var e;null!=(e=it.l.value)&&e.enable&&l()}),(0,F.on)("notice.hidden",d),(0,F.on)("preferences.shown",l),(0,F.on)("preferences.hidden",d),s()})})},Gs=i(15427),Hs=i(87931),Ks=i(51373),Js=i(74283),qs=e=>{var{includeAllLegalBasis:t=!1,requiredPurposeIds:n,requiredPurposeIdsBasedOnConsent:r,essentialPurposeIds:s,customPurposesIds:o,disabledPurposeIds:i,userStatus:a,isConsentRequired:u}=e,l=[],d=[],c=[],p=t?n:(0,h.$)([...o.filter(e=>!i.includes(e)),...r]);for(var v of p){var f=r.includes(v)?a.byLegalBasis.consent.purposesById[v]:a.byLegalBasis.li.purposesById[v];s.includes(v)||!0===f?l.push(v):!1===f?c.push(v):u?d.push(v):l.push(v)}return{allowed:l,unknown:d,denied:c}},Zs=i(3342),$s=i(38572),Ys=[],Qs=t=>{var n;if(null==(n=Ys)||!n.length)return Promise.resolve();var r=(0,Zs.R)({requiredVendors:t.requiredVendors,userStatus:t.userStatus,isConsentRequired:t.isConsentRequired,hasMadeAnyChoice:t.hasMadeAnyChoice,vendorsStatuses:t.vendorsStatuses,essentialPurposeIds:t.essentialPurposeIds,processingRules:(0,$s.k)()}),s=(e=>{var{experiment:t,requiredPurposeIds:n,requiredPurposeIdsBasedOnConsent:r,essentialPurposeIds:s,userStatus:o,isConsentRequired:i,customPurposesIds:a,disabledPurposeIds:u,regulation:l,consentString:d,vendorIdsMap:c,vendorByStatus:p={vendorsByStatusWithPurposes:{allowed:[],unknown:[],denied:[]},vendorsByStatusWithoutPurposes:{allowed:[],unknown:[],denied:[]}}}=e,{vendorsByStatusWithPurposes:v,vendorsByStatusWithoutPurposes:f}=p,h=qs({requiredPurposeIds:n,requiredPurposeIdsBasedOnConsent:r,essentialPurposeIds:s,userStatus:o,isConsentRequired:i,customPurposesIds:a,disabledPurposeIds:u,includeAllLegalBasis:!1}),g=qs({requiredPurposeIds:n,requiredPurposeIdsBasedOnConsent:r,essentialPurposeIds:s,userStatus:o,isConsentRequired:i,customPurposesIds:a,disabledPurposeIds:u,includeAllLegalBasis:!0});return{didomiRegulationName:(null==l?void 0:l.name)||"",didomiGDPRApplies:"gdpr"===(null==l?void 0:l.name)?1:0,didomiIABConsent:"gdpr"===(null==l?void 0:l.name)&&d||"",didomiVendorsConsent:(0,Ks.z)(v.allowed),didomiVendorsConsentUnknown:(0,Ks.z)(v.unknown),didomiVendorsConsentDenied:(0,Ks.z)(v.denied),didomiPurposesConsent:(0,Ks.z)(h.allowed),didomiPurposesConsentUnknown:(0,Ks.z)(h.unknown),didomiPurposesConsentDenied:(0,Ks.z)(h.denied),didomiVendorsRawConsent:(0,Ks.z)(f.allowed),didomiVendorsRawConsentUnknown:(0,Ks.z)(f.unknown),didomiVendorsRawConsentDenied:(0,Ks.z)(f.denied),didomiExperimentId:(null==t?void 0:t.id)||"",didomiExperimentUserGroup:(null==t?void 0:t.group)||"",didomiVendorsEnabled:(0,Ks.z)(v.allowed.map(e=>c[(0,Js.b)(e)])),didomiVendorsDisabled:(0,Ks.z)(v.denied.map(e=>c[(0,Js.b)(e)])),didomiVendorsUnknown:(0,Ks.z)(v.unknown.map(e=>c[(0,Js.b)(e)])),didomiPurposesEnabled:(0,Ks.z)(g.allowed),didomiPurposesDisabled:(0,Ks.z)(g.denied),didomiPurposesUnknown:(0,Ks.z)(g.unknown)}})((0,e.A)({vendorByStatus:r},t));return Ys.forEach(n=>n.update((0,e.A)({customVariables:s},t))),Promise.resolve()},Xs=i(98074),eo=i(21691),to=function(){var e=(0,t.A)(function*(e){var{ready:t=!0,consent:n=!0}=e;n&&(0,F.on)("internal.consent.changed",()=>{Qs({type:"didomi-consent-changed",hasMadeAnyChoice:A.a.value.hasMadeAnyChoice,requiredVendors:P.h.value,vendorIdsMap:K.C.value,vendorsStatuses:eo._.value,experiment:ke.value,requiredPurposeIds:w.t.value.purposeIds,requiredPurposeIdsBasedOnConsent:w.t.value.purposeIdsBasedOnConsent,essentialPurposeIds:b.T.value,customPurposesIds:ln.Y.value,disabledPurposeIds:Xs.B.value,userStatus:A.a.value,isConsentRequired:te.y.value,regulation:$.r.value,consentString:_.M.value,allowedCategories:re.value})}),t&&(yield Qs({type:"didomi-ready",hasMadeAnyChoice:A.a.value.hasMadeAnyChoice,requiredVendors:P.h.value,vendorIdsMap:K.C.value,vendorsStatuses:eo._.value,experiment:ke.value,requiredPurposeIds:w.t.value.purposeIds,requiredPurposeIdsBasedOnConsent:w.t.value.purposeIdsBasedOnConsent,essentialPurposeIds:b.T.value,customPurposesIds:ln.Y.value,disabledPurposeIds:Xs.B.value,userStatus:A.a.value,isConsentRequired:te.y.value,regulation:$.r.value,consentString:_.M.value,allowedCategories:re.value}))});return function(t){return e.apply(this,arguments)}}(),no=i(56067),ro=i(73307),so=[],oo=e=>{so.forEach(t=>t.setConsentStatus({event:e}))},io=e=>{var{ready:t=!0,consent:n=!0}=e;t&&oo("pageload"),n&&(0,F.on)("internal.consent.changed",()=>{oo("consent-changed")})},ao=i(41981),uo=i(33058),lo=i(6024),co=(0,uo.vP)(null),po=null,vo=t=>Promise.all([i(51117)("./"+t+"/onesky.json"),i(56247)("./"+t+"/tcf/v2.2/index.json")]).then(t=>{var[n,r]=t;return(0,e.A)({},n.default||n,r.default||r)}),fo=()=>{if(co.value)return Promise.resolve();if(!po){var e=s.H.value||lo.Nm;po=vo(e).catch(()=>vo(lo.Nm)).then(e=>{co.value=e||{}}).catch(e=>{(0,ls.k0)(ds.Cb.ERROR_IAB_VENDOR_TEXTS_LOAD,{reason:String(e)}),co.value={},po=null})}return po};const ho=(e,t,n)=>{const r=(e=>{switch(e){case"purpose":return"purposes";case"special_purpose":return"specialPurposes";case"feature":return"features";case"special_feature":return"specialFeatures";case"data_category":return"dataCategories";default:return}})(e);if(r)return n[r][t]},go=(e,t,n)=>{var r,s,o,i,a;e.content||(e.content={texts:[...t.texts],params:{}}),t.text_variants&&(e.content.text_variants=Object.keys(t.text_variants).reduce((e,n)=>{const r=t.text_variants[n];return e[n]=Object.keys(r).reduce((e,t)=>(e[t]=[...r[t]],e),{}),e},{})),e.content.params||(e.content.params={});const u=Object.keys(null!==(r=t.params)&&void 0!==r?r:{});for(const r of u)if((null===(s=t.params)||void 0===s?void 0:s[r])&&"object"==typeof(null===(o=t.params)||void 0===o?void 0:o[r])){const t=n[r],s=null===(i=e.content.params)||void 0===i?void 0:i[r];if(t)switch(t.type){case"link":e.content.params[r]={type:"link",href:t.href,label:s&&"link"===s.type?s.label:t.label};break;case"list":e.content.params[r]={type:"list",items:s&&"list"===s.type?s.items:t.items};break;case"date":e.content.params[r]={type:"date",value:s&&"date"===s.type?s.value:t.value};break;case"number":e.content.params[r]={type:"number",value:s&&"number"===s.type?s.value:t.value};break;case"string":e.content.params[r]={type:"string",value:s&&"string"===s.type?s.value:t.value}}}if(e.content.text_variants)for(const t of Object.keys(e.content.text_variants)){const n=null===(a=e.content.params)||void 0===a?void 0:a[t];if(n&&("number"===n.type||"string"===n.type)){const r=String(n.value),s=e.content.text_variants[t];if(s[r]){e.content.texts=[...s[r]];break}if(s.default){e.content.texts=[...s.default];break}}}},mo=(e,t)=>{const n=ho(e.type,e.iab,t);n&&(e.name=n.name,e.description=n.description)},bo=(e,t,n,r)=>{var s,o;const i=t.iab;if(!i)return;const a="special_purpose"===t.type?null!==(s=n.dataRetention.specialPurposes[String(i)])&&void 0!==s?s:n.dataRetention.stdRetention:null!==(o=n.dataRetention.purposes[String(i)])&&void 0!==o?o:n.dataRetention.stdRetention,u=r.nodes[e.id];u&&go(t,u,{retention:{value:a,type:"number"}})},yo=(e,t,n,r,s)=>{var o,i,a;for(const u of e){const e=t.vendors[u.id];if(e&&(u.name=e.name,u.description=e.description),"optin"===u.id||"optout"===u.id||"essential"===u.id){for(const e of null!==(o=null==u?void 0:u.nodes)&&void 0!==o?o:[])if("iab"in e&&void 0!==e.iab){const t=e;mo(t,n),r&&s&&("purpose"===t.type||"special_purpose"===t.type)&&bo(u,t,r,s)}}else if("additional_data_processing"===u.id){for(const e of null!==(i=null==u?void 0:u.nodes)&&void 0!==i?i:[])if("iab"in e&&void 0!==e.iab){const t=e;mo(t,n),r&&s&&"special_purpose"===t.type&&bo(u,t,r,s)}}else if("categories_of_data"===u.id)for(const e of null!==(a=null==u?void 0:u.nodes)&&void 0!==a?a:[])"iab"in e&&void 0!==e.iab&&mo(e,n);else if("device_storage"===u.id&&r&&s){const e=s.nodes[u.id];e&&(go(u,e,{vendor:{value:r.name,type:"string"}}),u.content&&(u.content.source=r.deviceStorageDisclosureUrl))}}},_o=(e,t,n,r,s,o)=>{var i;const a=e.iab,u=t[String(a)];u&&(((e,t,n,r)=>{e.name=t.name;const s=((e,t)=>{var n,r,s,o,i,a,u,l,d;return null!==(d=null!==(a=null!==(s=null===(r=null===(n=e.urls)||void 0===n?void 0:n.find(e=>e.langId===t))||void 0===r?void 0:r.privacy)&&void 0!==s?s:null===(i=null===(o=e.urls)||void 0===o?void 0:o.find(e=>"en"===e.langId))||void 0===i?void 0:i.privacy)&&void 0!==a?a:null===(l=null===(u=e.urls)||void 0===u?void 0:u[0])||void 0===l?void 0:l.privacy)&&void 0!==d?d:e.policyUrl})(t,r);s&&t.name&&go(e,n.vendor,{name:{value:t.name,type:"string"},policyUrl:{type:"link",label:"privacy policy",href:s}})})(e,u,n,o),yo(null!==(i=null==e?void 0:e.nodes)&&void 0!==i?i:[],r,s,u,n))},Io=e=>{var t,n;return e?"stack"===e.type?(null!==(t=e.nodes)&&void 0!==t?t:[]).flatMap(Io):"purpose"===e.type||"special_feature"===e.type?(null!==(n=e.nodes)&&void 0!==n?n:[]).reduce((e,t)=>{var n;const r=(null!==(n=t.nodes)&&void 0!==n?n:[]).filter(e=>"reference"===e.type);return e.push(...r),e},[]):[]:[]},So=(e,t,n,r,s,o,i)=>{const a=[],u=new Map,l=(e,t)=>{for(const n of e)if("category"===n.type||"vendors"===n.type||"purposes"===n.type){const e=n.nodes||[];l(e,t)}else t(n)};e.vendors&&l([e.vendors],e=>{"vendor"===e.type&&((e=>{"iab"in e&&void 0!==e.iab?_o(e,t,n,r,s,i):((e,t,n)=>{var r;yo(null!==(r=null==e?void 0:e.nodes)&&void 0!==r?r:[],n,t)})(e,s,r)})(e),u.set(e.id,e))});const d=e=>{if("purpose"===e.type||"special_feature"===e.type)a.push(...Io(e)),"iab"in e&&void 0!==e.iab?((e,t,n)=>{var r;const s=ho(e.type,e.iab,t);if(!s)return;e.name=s.name,e.description=s.description;const o="illustrations"in s?s.illustrations:[];e.content?e.content.texts=[...e.content.texts,...null!=o?o:[]]:e.content={texts:[...null!=o?o:[]]};for(const t of null!==(r=e.nodes)&&void 0!==r?r:[]){const e=n.purposes[t.id];e&&(t.name=e.name,t.description=e.description)}})(e,s,r):((e,t=[],n,r)=>{var s,o,i;const a=t.find(t=>t.id===e.id);if(a){const t=null!==(s=a.name[r])&&void 0!==s?s:e.name,n=null!==(o=a.description[r])&&void 0!==o?o:e.description;e.name=t,e.description=n}for(const t of null!==(i=e.nodes)&&void 0!==i?i:[]){const e=n.purposes[t.id];e&&(t.name=e.name,t.description=e.description)}})(e,o,r,i);else if("stack"===e.type&&e.nodes)for(const t of e.nodes)d(t)};e.purposes&&l([e.purposes],e=>{d(e)});for(const e of a){const t=u.get(e.ref_id);t&&(e.name=t.name)}};var wo,Ao;!function(e){e.UNDEFINED="undefined",e.NULL="null",e.TRUE="true",e.FALSE="false"}(wo||(wo={})),function(e){e.CURRENT_USER_STATUS="current_user_status",e.CATEGORY="category"}(Ao||(Ao={}));const Co=(e,t)=>{if(!e||"object"!=typeof e)return;const n=e;if(n.status&&Array.isArray(n.status.update_path)&&(n.status.update_path=t),Array.isArray(n.nodes))for(let e=0;e(e.vendors&&Co(e.vendors,[0]),e.purposes&&Co(e.purposes,[1]),e);var ko;!function(e){e.Cookies="cookies",e.CookiesAnalytics="cookies_analytics",e.CookiesMarketing="cookies_marketing",e.CookiesSocial="cookies_social",e.SelectBasicAds="select_basic_ads",e.CreateAdsProfile="create_ads_profile",e.SelectPersonalizedAds="select_personalized_ads",e.CreateContentProfile="create_content_profile",e.SelectPersonalizedContent="select_personalized_content",e.MeasureAdPerformance="measure_ad_performance",e.MeasureContentPerformance="measure_content_performance",e.MarketResearch="market_research",e.ImproveProducts="improve_products",e.UseLimitedDataToSelectContent="use_limited_data_to_select_content"}(ko||(ko={}));const Eo={[ko.Cookies]:1,[ko.CookiesAnalytics]:1,[ko.CookiesMarketing]:1,[ko.CookiesSocial]:1,[ko.SelectBasicAds]:2,[ko.CreateAdsProfile]:3,[ko.SelectPersonalizedAds]:4,[ko.CreateContentProfile]:5,[ko.SelectPersonalizedContent]:6,[ko.MeasureAdPerformance]:7,[ko.MeasureContentPerformance]:8,[ko.MarketResearch]:9,[ko.ImproveProducts]:10,[ko.UseLimitedDataToSelectContent]:11};var Oo;!function(e){e.GeolocationData="geolocation_data",e.DeviceCharacteristics="device_characteristics"}(Oo||(Oo={}));const To={[Oo.GeolocationData]:1,[Oo.DeviceCharacteristics]:2};let Lo;const xo=(e,t,n)=>{if(!n)return!0;const r="vendor"===t?"vendors":"purpose"===t||"special_feature"===t?"purposes":"categories";return!Lo||0===Lo[r].size||Lo[r].has(e)};var Ro=i(94988);const Uo=(e,t)=>({id:e,type:"category",nodes:[],...("optin"===e||"optout"===e)&&{status:{current:"unchecked",update_path:[]},_rawValue:wo.UNDEFINED,transformer:"widget_status",value:"unchecked",signals:{type:Ro.LW.VENDORS,processingRule:"optin"===e?Ro.KI.OPTIN:Ro.KI.OPTOUT,ids:[t]}},..."essential"===e&&{status:{current:"essential"},_rawValue:wo.TRUE,transformer:"widget_status_essential",value:"essential",signals:{type:Ro.LW.CONSTANT_VALUE,value:!0}},visible:!0,applyApplicableData:!1}),Do=(e,t=!1)=>{void 0===e.status&&(t?Object.assign(e,{status:{current:"disclosed"},_rawValue:wo.TRUE,transformer:"widget_status_disclosed",aggregationType:Ao.CATEGORY,signals:{type:Ro.LW.CONSTANT_VALUE,value:!0},value:"disclosed"}):Object.assign(e,{status:{current:"unchecked",update_path:[]},_rawValue:wo.NULL,transformer:"widget_status",aggregationType:Ao.CATEGORY,value:"unchecked"}))},No=(e,t,n)=>({type:"purpose",id:e,...t&&{name:t},...n&&{description:n},visible:!0,applyApplicableData:!1}),Bo=(e,t,n)=>({id:e,type:t,iab:n,visible:!0,applyApplicableData:!1}),Vo=(e,t,n,r="iab")=>{var s,o,i;if(e.processingRules.purposes.all.ids.add(t),null===(s=e.processingRules.purposes.all[n])||void 0===s||s.add(t),Array.isArray(r))for(const s of r)e.processingRules.purposes[s].ids.add(t),null===(o=e.processingRules.purposes[s][n])||void 0===o||o.add(t);else e.processingRules.purposes[r].ids.add(t),null===(i=e.processingRules.purposes[r][n])||void 0===i||i.add(t)},jo=(e,t,n,r)=>{var s,o,i,a,u;if(0!==t.length){e.processingRules.vendors.all.ids.add(n);for(const l of t)if(null===(s=e.processingRules.vendors.all[l])||void 0===s||s.add(n),Array.isArray(r))for(const t of r)e.processingRules.vendors[t].ids.add(n),null===(i=null===(o=e.processingRules.vendors[t])||void 0===o?void 0:o[l])||void 0===i||i.add(n);else e.processingRules.vendors[r].ids.add(n),null===(u=null===(a=e.processingRules.vendors[r])||void 0===a?void 0:a[l])||void 0===u||u.add(n)}},Mo=(e,t)=>({id:e,type:"category",nodes:[],...("optin"===e||"optout"===e)&&{status:{current:"unchecked",update_path:[]},_rawValue:wo.UNDEFINED,transformer:"widget_status",value:"unchecked",signals:{type:Ro.LW.PURPOSES,processingRule:"optin"===e?Ro.KI.OPTIN:Ro.KI.OPTOUT,ids:[t]}},..."essential"===e&&{status:{current:"essential"},_rawValue:wo.TRUE,transformer:"widget_status_essential",value:"essential",signals:{type:Ro.LW.CONSTANT_VALUE,value:!0}},visible:!0,applyApplicableData:!1}),Fo=(e,t,n,r)=>{var s,o,i,a;const u={id:`vendor-reference-${r}`,type:"reference",ref_type:"vendor",ref_id:r,ref_path:[],visible:xo(r,"vendor",!0),applyApplicableData:!0},l=null===(s=t.nodes)||void 0===s?void 0:s.find(({id:e})=>e===n);if(!l){const r=Mo(n,e);return null===(o=r.nodes)||void 0===o||o.push(u),null===(i=t.nodes)||void 0===i||i.push(r),u}return(null===(a=l.nodes)||void 0===a?void 0:a.find(({ref_id:e})=>e===r))||(Array.isArray(l.nodes)?l.nodes.push(u):l.nodes=[u],u)},zo=(e,t,n)=>{var r,s;let o=null===(r=t.nodes)||void 0===r?void 0:r.find(({id:e})=>e===n);return o||(o=Mo(n,e),null===(s=t.nodes)||void 0===s||s.push(o)),o},Wo=(e,t)=>{var n,r,s,o,i,a,u,l;const d=String(t.id),c=new Set(Object.keys(null!==(n=t.namespaces)&&void 0!==n?n:{}));let p=!1;return!(0===c.size||1===c.size&&c.has("custom"))&&(1===c.size&&c.has("num")||2===c.size&&c.has("num")&&c.has("custom")?((null===(r=e.processingRules.purposes.custom.idsMapping)||void 0===r?void 0:r.num)&&"number"==typeof(null===(s=t.namespaces)||void 0===s?void 0:s.num)?e.processingRules.purposes.custom.idsMapping.num[d]=t.namespaces.num:"number"==typeof(null===(o=t.namespaces)||void 0===o?void 0:o.num)&&(e.processingRules.purposes.custom.idsMapping={...e.processingRules.purposes.custom.idsMapping&&e.processingRules.purposes.custom.idsMapping,num:{[d]:t.namespaces.num}}),!1):((c.has("iab")||c.has("iab2"))&&(c.has("num")&&"number"==typeof(null===(i=t.namespaces)||void 0===i?void 0:i.num)&&((null===(a=e.processingRules.purposes.iab.idsMapping)||void 0===a?void 0:a.num)?e.processingRules.purposes.iab.idsMapping.num[d]=t.namespaces.num:e.processingRules.purposes.iab.idsMapping={...e.processingRules.purposes.iab.idsMapping&&e.processingRules.purposes.iab.idsMapping,num:{[d]:t.namespaces.num}}),p=!0),c.has("pub")&&"number"==typeof(null===(u=t.namespaces)||void 0===u?void 0:u.pub)&&((null===(l=e.processingRules.purposes.firstParty.idsMapping)||void 0===l?void 0:l.pub)?e.processingRules.purposes.firstParty.idsMapping.pub[d]=t.namespaces.pub:e.processingRules.purposes.firstParty.idsMapping={...e.processingRules.purposes.firstParty.idsMapping&&e.processingRules.purposes.firstParty.idsMapping,pub:{[d]:t.namespaces.pub}}),p))},Go=(e,t,n,r,s)=>{var o,i,a,u;if(!t)return;if(!t.id)return;if(Wo(e,t))return;let l=null===(o=e.purposes)||void 0===o?void 0:o.nodes.find(({id:e})=>e===t.id);l?r?Fo(String(t.id),l,n,r):zo(String(t.id),l,n):(l=((e,t,n)=>({type:"purpose",id:e,...t&&{name:t},...n&&{description:n},nodes:[],visible:xo(e,"purpose",!0),applyApplicableData:!0}))(String(t.id),null===(i=t.name)||void 0===i?void 0:i[s],null===(a=t.description)||void 0===a?void 0:a[s]),r?Fo(String(t.id),l,n,r):zo(String(t.id),l,n),null===(u=e.purposes)||void 0===u||u.nodes.push(l))},Ho=(e,t,n,r,s,o)=>{var i,a;let u=null===(i=e.purposes)||void 0===i?void 0:i.nodes.find(({id:e})=>e===t);u?Fo(t,u,s,o):(u=((e,t,n)=>({type:n,id:e,iab:t,nodes:[],visible:xo(e,n,!0),applyApplicableData:!0}))(t,n,r),Fo(t,u,s,o),null===(a=e.purposes)||void 0===a||a.nodes.push(u))},Ko=(e,t,n=[],r,s,o,i,a,u=!0,l=[])=>{var d,c,p,v,f,h,g;if(((e,t)=>{var n,r,s,o,i,a,u,l,d,c,p,v,f;const h=null!==(r=null!==(n=t.didomiId)&&void 0!==n?n:t.id)&&void 0!==r?r:"",g=new Set(Object.keys(null!==(s=t.namespaces)&&void 0!==s?s:{}));let m=!1;return!(0===g.size||1===g.size&&g.has("custom"))&&(1===g.size&&g.has("num")||2===g.size&&g.has("num")&&g.has("custom")?((null===(o=e.processingRules.vendors.custom.idsMapping)||void 0===o?void 0:o.num)&&"number"==typeof(null===(i=t.namespaces)||void 0===i?void 0:i.num)?e.processingRules.vendors.custom.idsMapping.num[h]=t.namespaces.num:"number"==typeof(null===(a=t.namespaces)||void 0===a?void 0:a.num)&&(e.processingRules.vendors.custom.idsMapping={...e.processingRules.vendors.custom.idsMapping&&e.processingRules.vendors.custom.idsMapping,num:{[h]:t.namespaces.num}}),!1):((g.has("iab")||g.has("iab2"))&&(g.has("num")&&"number"==typeof(null===(u=t.namespaces)||void 0===u?void 0:u.num)&&((null===(l=e.processingRules.vendors.iab.idsMapping)||void 0===l?void 0:l.num)?e.processingRules.vendors.iab.idsMapping.num[h]=t.namespaces.num:e.processingRules.vendors.iab.idsMapping={...e.processingRules.vendors.iab.idsMapping&&e.processingRules.vendors.iab.idsMapping,num:{[h]:t.namespaces.num}}),m=!0),g.has("didomi")&&(g.has("num")&&"number"==typeof(null===(d=t.namespaces)||void 0===d?void 0:d.num)&&((null===(c=e.processingRules.vendors.didomi.idsMapping)||void 0===c?void 0:c.num)?e.processingRules.vendors.didomi.idsMapping.num[h]=t.namespaces.num:e.processingRules.vendors.didomi.idsMapping={...e.processingRules.vendors.didomi.idsMapping&&e.processingRules.vendors.didomi.idsMapping,num:{[h]:t.namespaces.num}}),m=!0),g.has("google")&&"object"==typeof(null===(p=t.namespaces)||void 0===p?void 0:p.google)&&t.namespaces.google.current&&g.has("num")&&"number"==typeof(null===(v=t.namespaces)||void 0===v?void 0:v.num)&&((null===(f=e.processingRules.vendors.google.idsMapping)||void 0===f?void 0:f.num)?e.processingRules.vendors.google.idsMapping.num[h]=t.namespaces.num:e.processingRules.vendors.google.idsMapping={...e.processingRules.vendors.google.idsMapping&&e.processingRules.vendors.google.idsMapping,num:{[h]:t.namespaces.num}}),m))})(e,t))return;const m=null!==(c=null!==(d=t.didomiId)&&void 0!==d?d:t.id)&&void 0!==c?c:"",b=new Set(n.map(e=>e.id)),y=new Set(o),_=new Set(l),I=new Set;e.processingRules.vendors.all.ids.add(m),e.processingRules.vendors.custom.ids.add(m);const S=[],w=new Set(["custom"]);"object"==typeof(null===(p=t.namespaces)||void 0===p?void 0:p.google)&&!0===(null===(v=t.namespaces)||void 0===v?void 0:v.google.current)&&(w.add("google"),e.processingRules.vendors.google.ids.add(m)),"1st_party"===t.type&&(w.add("firstParty"),S.push("firstParty"),e.processingRules.vendors.firstParty.ids.add(m));const A=u?{optout:Uo("optout",m),optin:Uo("optin",m),essential:Uo("essential",m)}:null,C=(t,r)=>{var s,o;for(const a of null!=t?t:[]){const t=Eo[a],u=To[a],l=y.has(a)?"essential":r;if(t||u){const n=t?"purpose":"special_feature",r=null!=t?t:u;I.add(l),Vo(e,a,l,["iab",...S]),_.has(a)&&Vo(e,a,"essentialForRevenuePurposes",["iab",...S]),A&&(A[l].nodes.push(Bo(a,n,r)),Ho(e,a,r,n,l,m))}else if(b.has(a)){const t=n.find(e=>e.id===a);I.add(l),Vo(e,a,l,["custom",...S]),_.has(a)&&Vo(e,a,"essentialForRevenuePurposes",["custom",...S]),A?(A[l].nodes.push(No(a,null===(s=null==t?void 0:t.name)||void 0===s?void 0:s[i],null===(o=null==t?void 0:t.description)||void 0===o?void 0:o[i])),Go(e,t,l,m,i)):t&&Wo(e,t)}}};if(w.has("google")?(C(r,"optout"),C(s,"optin")):(C(t.legIntPurposeIds,"optout"),C(t.purposeIds,"optin")),I.size>0&&jo(e,[...I],m,[...w]),!A)return;const P={id:m,type:"vendor",name:t.name,nodes:[],visible:xo(m,"vendor",!0),applyApplicableData:!0};t.policyUrl&&t.name&&go(P,a,{name:{value:t.name,type:"string"},policyUrl:{type:"link",label:"privacy policy",href:t.policyUrl}});for(const e of[A.optout,A.optin,A.essential])e.nodes.length>0&&(null===(f=P.nodes)||void 0===f||f.push(e));const k=0===I.size||1===I.size&&I.has("essential");Do(P,k),null===(g=null===(h=e.vendors)||void 0===h?void 0:h.nodes)||void 0===g||g.push(P)},Jo=(e,t)=>e.reduce((e,n)=>{if("number"==typeof n)e.push(n);else{const r=t[n];void 0!==r&&e.push(r)}return e},[]),qo={1:ko.Cookies,2:ko.SelectBasicAds,3:ko.CreateAdsProfile,4:ko.SelectPersonalizedAds,5:ko.CreateContentProfile,6:ko.SelectPersonalizedContent,7:ko.MeasureAdPerformance,8:ko.MeasureContentPerformance,9:ko.MarketResearch,10:ko.ImproveProducts,11:ko.UseLimitedDataToSelectContent},Zo={1:Oo.GeolocationData,2:Oo.DeviceCharacteristics},$o=(e,t)=>"string"!=typeof e?t?Zo[e]:qo[e]:e,Yo=(e,t)=>({id:e,type:"category",nodes:[],status:{current:"disclosed"},_rawValue:wo.TRUE,transformer:"widget_status_disclosed",aggregationType:Ao.CATEGORY,signals:{type:Ro.LW.CONSTANT_VALUE,value:!0},value:"disclosed",...("optin"===e||"optout"===e)&&{status:{current:"unchecked",update_path:[]},_rawValue:wo.UNDEFINED,transformer:"widget_status",value:"unchecked",signals:{type:Ro.LW.VENDORS,processingRule:"optin"===e?Ro.KI.OPTIN:Ro.KI.OPTOUT,ids:[String(t)]}},..."essential"===e&&{status:{current:"essential"},_rawValue:wo.TRUE,transformer:"widget_status_essential",value:"essential",signals:{type:Ro.LW.CONSTANT_VALUE,value:!0}},visible:!0,applyApplicableData:!1}),Qo=(e,t,n,r,s=!0,o=[])=>{var i,a,u,l,d,c,p,v,f,h,g;if(r.removeDeletedVendors&&void 0!==t.tmpDeletedDate)return;const m=t.id,b=new Set,y=new Set(n),_=new Set(o);e.processingRules.vendors.all.ids.add(m),e.processingRules.vendors.iab.ids.add(m),null===(i=e.processingRules.vendors.all.disclosed)||void 0===i||i.add(m),null===(a=e.processingRules.vendors.iab.disclosed)||void 0===a||a.add(m);const I=s?{optout:Yo("optout",m),optin:Yo("optin",m),essential:Yo("essential",m),additional_data_processing:Yo("additional_data_processing",m)}:null;for(const n of null!==(u=t.legIntPurposeIds)&&void 0!==u?u:[]){const r=$o(n,!1),[s]=Jo([n],Eo);if(void 0===r||void 0===s)continue;const o=y.has(r)?"essential":"optout";b.add(o),Vo(e,r,o),_.has(r)&&Vo(e,r,"essentialForRevenuePurposes"),I&&(I[o].nodes.push(Bo(r,"purpose",s)),Ho(e,r,s,"purpose",o,t.didomiId))}for(const n of null!==(l=t.purposeIds)&&void 0!==l?l:[]){const r=$o(n,!1),[s]=Jo([n],Eo);if(void 0===r||void 0===s)continue;const o=y.has(r)?"essential":"optin";b.add(o),Vo(e,r,o),_.has(r)&&Vo(e,r,"essentialForRevenuePurposes"),I&&(I[o].nodes.push(Bo(r,"purpose",s)),Ho(e,r,s,"purpose",o,t.didomiId))}if(null===(d=t.specialFeatureIds)||void 0===d?void 0:d.length){b.has("optin")||b.add("specialFeatures"),b.add("optin");for(const n of t.specialFeatureIds){const r=$o(n,!0),[s]=Jo([n],To);void 0!==r&&void 0!==s&&(Vo(e,r,"optin"),I&&(I.optin.nodes.push(Bo(r,"special_feature",s)),Ho(e,r,s,"special_feature","optin",t.didomiId)))}}if((null===(c=t.specialPurposeIds)||void 0===c?void 0:c.length)&&0===b.size&&b.add("specialPurposes"),b.size>0&&jo(e,[...b],m,"iab"),!I)return;const S={id:t.didomiId,type:"vendor",iab:m,nodes:[],visible:xo(t.didomiId,"vendor",!0),applyApplicableData:!0};for(const e of null!==(p=t.specialPurposeIds)&&void 0!==p?p:[])I.additional_data_processing.nodes.push(Bo(`special-purpose-${e}`,"special_purpose",e));for(const e of null!==(v=t.featureIds)&&void 0!==v?v:[])I.additional_data_processing.nodes.push(Bo(`feature-${e}`,"feature",e));for(const e of[I.optout,I.optin,I.essential,I.additional_data_processing])e.nodes.length>0&&(null===(f=S.nodes)||void 0===f||f.push(e));const w=0===b.size||1===b.size&&(b.has("essential")||b.has("specialPurposes"));Do(S,w),null===(g=null===(h=e.vendors)||void 0===h?void 0:h.nodes)||void 0===g||g.push(S)},Xo=(e,t,n,r,s,o,i=!0,a=[])=>{var u,l,d,c,p,v,f;const h=null!==(l=null!==(u=t.didomiId)&&void 0!==u?u:t.id)&&void 0!==l?l:"",g=new Set(["didomi"]),m=new Set,b=new Set(s),y=new Set(a);e.processingRules.vendors.all.ids.add(h),e.processingRules.vendors.didomi.ids.add(h);const _=i?{optout:Uo("optout",h),optin:Uo("optin",h),essential:Uo("essential",h)}:null,I=(t,n)=>{for(const r of null!=t?t:[]){const t=Eo[r],s=To[r];if(t||s){const o=t?"purpose":"special_feature",i=null!=t?t:s,a=b.has(r)?"essential":n;m.add(a),Vo(e,r,a,["iab"]),y.has(r)&&Vo(e,r,"essentialForRevenuePurposes",["iab"]),_&&(_[a].nodes.push(Bo(r,o,i)),Ho(e,r,i,o,a,h))}}};if("object"==typeof(null===(d=t.namespaces)||void 0===d?void 0:d.google)&&!0===(null===(c=t.namespaces)||void 0===c?void 0:c.google.current)?(g.add("google"),e.processingRules.vendors.google.ids.add(h),I(n,"optout"),I(r,"optin")):(I(t.legIntPurposeIds,"optout"),I(t.purposeIds,"optin")),m.size>0&&jo(e,[...m],h,[...g]),!_)return;const S={id:h,type:"vendor",name:t.name,nodes:[],visible:xo(h,"vendor",!0),applyApplicableData:!0};t.policyUrl&&t.name&&go(S,o,{name:{value:t.name,type:"string"},policyUrl:{type:"link",label:"privacy policy",href:t.policyUrl}});for(const e of[_.optout,_.optin,_.essential])e.nodes.length>0&&(null===(p=S.nodes)||void 0===p||p.push(e));const w=0===m.size||1===m.size&&m.has("essential");Do(S,w),null===(f=null===(v=e.vendors)||void 0===v?void 0:v.nodes)||void 0===f||f.push(S)},ei={googleLegIntPurposeIds:[qo[1],qo[3],qo[4]],googlePurposeIds:[qo[2],qo[7],qo[9],qo[10]]},ti=(e,t)=>{var n;if("purpose"===e.type||"special_feature"===e.type){const r=new Set(null===(n=e.nodes)||void 0===n?void 0:n.map(({id:e})=>e));0===r.size||1===r.size&&r.has("essential")?Object.assign(e,{status:{current:"essential"},_rawValue:wo.TRUE,transformer:"widget_status_disclosed",aggregationType:Ao.CATEGORY,signals:{type:Ro.LW.CONSTANT_VALUE,value:!0},value:"essential"}):(null==t?void 0:t.has(e.id))?Object.assign(e,{status:{current:"essential_for_revenue",update_path:[]},_rawValue:wo.NULL,transformer:"widget_status_essential_for_revenue",aggregationType:Ao.CATEGORY,value:"essential_for_revenue"}):Object.assign(e,{status:{current:"unchecked",update_path:[]},_rawValue:wo.NULL,transformer:"widget_status",aggregationType:Ao.CATEGORY,value:"unchecked"})}else Object.assign(e,{status:{current:"unchecked",update_path:[]},_rawValue:wo.NULL,transformer:"widget_status",aggregationType:Ao.CATEGORY,value:"unchecked"})},ni=(e,t=[],n=[],r=[],s=[],o,i={},a=[])=>{var u,l,d,c;const p=null!==(u=i.locale)&&void 0!==u?u:"en",v=null===(l=i.shouldInjectNodes)||void 0===l||l,f={vendors:{id:"vendors",type:"vendors",nodes:[],status:{current:"unchecked",update_path:[]},_rawValue:wo.NULL,transformer:"widget_status",aggregationType:Ao.CATEGORY,value:"unchecked",visible:!0,applyApplicableData:!1},purposes:{id:"purposes",type:"purposes",nodes:[],status:{current:"unchecked",update_path:[]},_rawValue:wo.NULL,transformer:"widget_status",aggregationType:Ao.CATEGORY,value:"unchecked",visible:!0,applyApplicableData:!1},processingRules:{vendors:{all:{ids:new Set,optin:new Set,optout:new Set,specialFeatures:new Set,specialPurposes:new Set,disclosed:new Set,idsMapping:{num:{}}},iab:{ids:new Set,optin:new Set,optout:new Set,specialFeatures:new Set,specialPurposes:new Set,disclosed:new Set,idsMapping:{num:{}}},custom:{ids:new Set,optin:new Set,optout:new Set,idsMapping:{num:{}}},didomi:{ids:new Set,optin:new Set,optout:new Set,idsMapping:{num:{}}},google:{ids:new Set,optin:new Set,optout:new Set,idsMapping:{num:{}}},firstParty:{ids:new Set,optin:new Set,optout:new Set,specialFeatures:new Set,specialPurposes:new Set,disclosed:new Set,idsMapping:{num:{}}}},purposes:{all:{ids:new Set,optin:new Set,optout:new Set,essential:new Set,essentialForRevenuePurposes:new Set,idsMapping:{pub:{}}},iab:{ids:new Set,optin:new Set,optout:new Set,essential:new Set,essentialForRevenuePurposes:new Set,idsMapping:{pub:{}}},custom:{ids:new Set,optin:new Set,optout:new Set,essential:new Set,essentialForRevenuePurposes:new Set,idsMapping:{pub:{}}},firstParty:{ids:new Set,optin:new Set,optout:new Set,essential:new Set,essentialForRevenuePurposes:new Set,idsMapping:{pub:{}}}}}};for(const t of e)Qo(f,t,s,i,v,a);const{googleLegIntPurposeIds:h,googlePurposeIds:g}=(e=>{const t=e.find(({id:e})=>755===e);return t?{googleLegIntPurposeIds:t.legIntPurposeIds.map(e=>qo[e]).filter(Boolean),googlePurposeIds:t.purposeIds.map(e=>qo[e]).filter(Boolean)}:ei})(e);for(const e of t)Ko(f,e,r,h,g,s,p,o,v,a);for(const e of n)Xo(f,e,h,g,s,o,v,a);if(((e,t=[],n={},r=[])=>{var s,o;const i=null!==(s=n.notLinkedPurposesProcessingRules)&&void 0!==s?s:["optin"],a=null!==(o=n.locale)&&void 0!==o?o:"en",u=new Set(r);for(const r of t)if(!e.processingRules.purposes.all.ids.has(r.id))for(const t of i)Vo(e,String(r.id),t,["custom","firstParty"]),u.has(String(r.id))&&Vo(e,String(r.id),"essentialForRevenuePurposes",["custom","firstParty"]),!1!==n.shouldInjectNodes?Go(e,r,t,void 0,a):Wo(e,r)})(f,r,i,a),v){const e=f.processingRules.purposes.all.essentialForRevenuePurposes;for(const t of null!==(c=null===(d=f.purposes)||void 0===d?void 0:d.nodes)&&void 0!==c?c:[])ti(t,e)}return Po((e=>{var t,n,r,s,o,i,a,u,l,d,c,p,v,f,h,g,m;return{...e,processingRules:{vendors:{all:{ids:[...e.processingRules.vendors.all.ids],optin:[...e.processingRules.vendors.all.optin],optout:[...e.processingRules.vendors.all.optout],specialFeatures:[...null!==(t=e.processingRules.vendors.all.specialFeatures)&&void 0!==t?t:[]],specialPurposes:[...null!==(n=e.processingRules.vendors.all.specialPurposes)&&void 0!==n?n:[]],disclosed:[...null!==(r=e.processingRules.vendors.all.disclosed)&&void 0!==r?r:[]],idsMapping:e.processingRules.vendors.all.idsMapping},iab:{ids:[...e.processingRules.vendors.iab.ids],optin:[...e.processingRules.vendors.iab.optin],optout:[...e.processingRules.vendors.iab.optout],specialFeatures:[...null!==(s=e.processingRules.vendors.iab.specialFeatures)&&void 0!==s?s:[]],specialPurposes:[...null!==(o=e.processingRules.vendors.iab.specialPurposes)&&void 0!==o?o:[]],disclosed:[...null!==(i=e.processingRules.vendors.iab.disclosed)&&void 0!==i?i:[]],idsMapping:e.processingRules.vendors.iab.idsMapping},custom:{ids:[...e.processingRules.vendors.custom.ids],optin:[...e.processingRules.vendors.custom.optin],optout:[...e.processingRules.vendors.custom.optout],idsMapping:e.processingRules.vendors.custom.idsMapping},didomi:{ids:[...e.processingRules.vendors.didomi.ids],optin:[...e.processingRules.vendors.didomi.optin],optout:[...e.processingRules.vendors.didomi.optout],idsMapping:e.processingRules.vendors.didomi.idsMapping},google:{ids:[...e.processingRules.vendors.google.ids],optin:[...e.processingRules.vendors.google.optin],optout:[...e.processingRules.vendors.google.optout],idsMapping:e.processingRules.vendors.google.idsMapping},firstParty:{ids:[...e.processingRules.vendors.firstParty.ids],optin:[...e.processingRules.vendors.firstParty.optin],optout:[...e.processingRules.vendors.firstParty.optout],specialFeatures:[...null!==(a=e.processingRules.vendors.firstParty.specialFeatures)&&void 0!==a?a:[]],specialPurposes:[...null!==(u=e.processingRules.vendors.firstParty.specialPurposes)&&void 0!==u?u:[]],disclosed:[...null!==(l=e.processingRules.vendors.firstParty.disclosed)&&void 0!==l?l:[]],idsMapping:e.processingRules.vendors.firstParty.idsMapping}},purposes:{all:{ids:[...e.processingRules.purposes.all.ids],optin:[...e.processingRules.purposes.all.optin],optout:[...e.processingRules.purposes.all.optout],essential:[...null!==(d=e.processingRules.purposes.all.essential)&&void 0!==d?d:[]],essentialForRevenuePurposes:[...null!==(c=e.processingRules.purposes.all.essentialForRevenuePurposes)&&void 0!==c?c:[]],idsMapping:e.processingRules.purposes.all.idsMapping},iab:{ids:[...e.processingRules.purposes.iab.ids],optin:[...e.processingRules.purposes.iab.optin],optout:[...e.processingRules.purposes.iab.optout],essential:[...null!==(p=e.processingRules.purposes.iab.essential)&&void 0!==p?p:[]],essentialForRevenuePurposes:[...null!==(v=e.processingRules.purposes.iab.essentialForRevenuePurposes)&&void 0!==v?v:[]],idsMapping:e.processingRules.purposes.iab.idsMapping},custom:{ids:[...e.processingRules.purposes.custom.ids],optin:[...e.processingRules.purposes.custom.optin],optout:[...e.processingRules.purposes.custom.optout],essential:[...null!==(f=e.processingRules.purposes.custom.essential)&&void 0!==f?f:[]],essentialForRevenuePurposes:[...null!==(h=e.processingRules.purposes.custom.essentialForRevenuePurposes)&&void 0!==h?h:[]],idsMapping:e.processingRules.purposes.custom.idsMapping},firstParty:{ids:[...e.processingRules.purposes.firstParty.ids],optin:[...e.processingRules.purposes.firstParty.optin],optout:[...e.processingRules.purposes.firstParty.optout],essential:[...null!==(g=e.processingRules.purposes.firstParty.essential)&&void 0!==g?g:[]],essentialForRevenuePurposes:[...null!==(m=e.processingRules.purposes.firstParty.essentialForRevenuePurposes)&&void 0!==m?m:[]],idsMapping:e.processingRules.purposes.firstParty.idsMapping}}}}})(f))},ri=(e,t,n,r=!1)=>({id:e,type:"category",...t&&{name:t},...n,nodes:[],applyApplicableData:r,visible:xo(e,"category",r)}),si=["enabled","disabled","unchecked","essential_for_revenue"];function oi(e,t,n,r){if(!e||!n.length)return!1;const s=new Set(n),o=new Map,i=e=>{for(const t of e.nodes)s.has(t.id)&&(o.set(t.id,{node:t,parent:e}),null==r||r(t)),"category"===t.type&&"nodes"in t&&Array.isArray(t.nodes)&&i(t)};i(e);const a=function(e,t){if(e.size!==t.length||0===e.size)return!1;const n=Array.from(e.values()),r=n[0].parent;if(!n.every(e=>e.parent===r))return!1;const s=t.map(e=>r.nodes.findIndex(t=>t.id===e)).filter(e=>-1!==e).sort((e,t)=>e-t);if(0===s.length)return!1;const o=s[0];return{firstParent:r,insertIndex:o,nodesInfo:n}}(o,n);if(!a)return!1;const{firstParent:u,insertIndex:l}=a,d=u.nodes.slice(0,l).filter(e=>!s.has(e.id)).length;return t.nodes=n.map(e=>o.get(e).node),u.nodes=u.nodes.filter(e=>!s.has(e.id)),u.nodes.splice(d,0,t),!0}const ii=(e,t,n)=>{let r=!1;const s=oi(e.purposes,t,n,e=>{("category"===e.type||e.status&&si.includes(e.status.current))&&(r=!0)});return s&&((e,t=!1)=>{(t||e.nodes.some(e=>e.status&&si.includes(e.status.current)))&&(e.status={current:"unchecked",update_path:[]},e._rawValue=wo.NULL,e.transformer="widget_status",e.aggregationType=Ao.CATEGORY,e.value="unchecked")})(t,r),s},ai=(e,t,n)=>{var r;if("category"!==t.type)return;const s=t.children.map(t=>"category"===t.type?(ai(e,t,n),t.id):t.purposeId),o=((e,t,n)=>ri(e,t,n,!0))(t.id,null!==(r=t.name[n])&&void 0!==r?r:t.name.en);ii(e,o,s)},ui=(e,t,n)=>ri(e,t,n),li=(e,t,n)=>oi(e.vendors,t,n);var di=i(68659);function ci(e,t){return void 0===t&&(t=Ao.CURRENT_USER_STATUS),0===e.length?null:t===Ao.CATEGORY?e.reduce(function(e,t,n){if(0===n||e===t)return t},null):e.every(function(e){return!0===e})}function pi(e){return void 0!==e.nodes&&void 0===e.signals}function vi(e){if("string"==typeof e._rawValue)switch(e._rawValue){case wo.UNDEFINED:return;case wo.NULL:return null;case wo.TRUE:return!0;case wo.FALSE:return!1}else{if("boolean"==typeof e.value)return e.value;if(null===e.value)return null;if(pi(e))return ci(e.nodes.map(function(e){return vi(e)}),e.aggregationType)}}function fi(e){return"boolean"==typeof e?e?wo.TRUE:wo.FALSE:null===e?wo.NULL:wo.UNDEFINED}var hi=function(){return hi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},mi=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,s,o=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(e){s={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(s)throw s.error}}return i},bi=function(e,t,n){if(n||2===arguments.length)for(var r,s=0,o=t.length;s!0===e?"enabled":!1===e?"disabled":"unchecked",widget_status_disclosed:()=>"disclosed",widget_status_essential:()=>"essential",widget_status_essential_for_revenue:e=>!0===e?"enabled":!1===e?"disabled":"essential_for_revenue"},Pi={vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},created:"",updated:""},ki=e=>({state:{userStatus:{purposes:{},vendors:{},gpc:void 0},token:null!=e?e:Pi},transformers:Ci}),Ei=(e,t)=>function(e,t){var n,r,s={};try{for(var o=gi(Object.keys(e)),i=o.next();!i.done;i=o.next()){var a=i.value;s[a]=yi(e[a],t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return s}((({vendors:e,purposes:t})=>({vendors:e,purposes:t}))(e),ki(t)),Oi=(e,t)=>{if(e.nodes)for(const n of e.nodes)Ti(n,t),xi(n)&&Oi(n,t)},Ti=(e,t)=>{const n=e;if(!n.signals)return;const r=Array.isArray(n.signals)?n.signals:[n.signals];for(const n of r)n.type!==Ro.LW.VENDORS&&n.type!==Ro.LW.PURPOSES||t(n,e._rawValue)},Li=(e,t,n)=>{if(t!==wo.TRUE&&t!==wo.FALSE)return;const r=t===wo.TRUE?"enabled":"disabled";e.type===Ro.LW.VENDORS?(e.processingRule===Ro.KI.OPTOUT?n.vendors_li:n.vendors)[r].push(...e.ids):(e.processingRule===Ro.KI.OPTOUT?n.purposes_li:n.purposes)[r].push(...e.ids)},xi=e=>"nodes"in e&&Array.isArray(e.nodes),Ri=e=>({vendors:e.vendors,purposes:e.purposes}),Ui=e=>{if(!e||"object"!=typeof e)return;const t=e;if(t.status&&Array.isArray(t.status.update_path)&&"disclosed"!==t.status.current&&"essential"!==t.status.current&&"string"==typeof t.value&&(t.status.current=t.value),Array.isArray(t.nodes))for(const e of t.nodes)Ui(e)},Di=(e,t)=>{const n={...e,vendors:t.vendors,purposes:t.purposes};return Ui(n.vendors),Ui(n.purposes),n},Ni=(e,t)=>{if(t.current===t.update)return e;const n=((e,t)=>{const n="enabled"===t.update;return Ii(e,t.update_path,n,ki())})(Ri(e.kio),t);return{...e,kio:Di(e.kio,n)}},Bi=(e,t)=>{const n=Ri(e.kio),r=Object.keys(n),s=ki();let o=n;for(let e=0;e{const t=((e,t)=>{const n={vendors:{enabled:[],disabled:[]},vendors_li:{enabled:[],disabled:[]},purposes:{enabled:[],disabled:[]},purposes_li:{enabled:[],disabled:[]},created:t,updated:(new Date).toISOString()};for(const t of Object.values(e))Oi(t,(e,t)=>{Li(e,t,n)});return n})(Ri(e.kio),e.token.created);return{...e,token:t}};var ji=i(39482),Mi=i(43272),Fi=i(36217),zi=i(72198),Wi=i(5125),Gi=function(e,t){void 0===e&&(e=[]);var n={};for(var r of e)n[String(r.id)]=t(r);return n},Hi={optin:"data_processing_based_consent",optout:"data_processing_based_legitimate_interest",essential:"required_data_processing",additional_data_processing:"features",categories_of_data:"categories_of_data",device_storage:"device_storage"},Ki=i(23369),Ji=e=>{var t=co.value||{};So(e,(()=>{var e={};for(var t of ks.bV.value||[])e[String(t.id)]=t;return e})(),{vendor:{texts:[],params:{}},nodes:{}},function(e){void 0===e&&(e={});var t={};for(var[n,r]of Object.entries(Hi)){var s=e[r];s&&(t[n]={name:s,description:""})}return{vendors:t,purposes:t}}(t),function(e){var t,n;void 0===e&&(e={});var r=t=>{var n;return null!=(n=e[t])?n:t},s=e=>{return{id:e.id,name:r(e.name),description:r(e.description),illustrations:(t=e.illustrations,void 0===t&&(t=[]),t.map(r))};var t};return{vendorListVersion:null!=(t=Wi.vendorListVersion)?t:0,lastUpdated:null!=(n=Wi.lastUpdated)?n:"",purposes:Gi(Wi.mP,s),specialPurposes:Gi(Wi.P2,s),features:Gi(Wi.qT,s),specialFeatures:Gi(Wi.nK,s),stacks:Gi(Wi.I3,e=>{var t,n;return{id:e.id,purposes:null!=(t=e.purposes)?t:[],specialFeatures:null!=(n=e.specialFeatures)?n:[],name:r(e.name),description:r(e.description)}}),dataCategories:Gi(Wi.DF,e=>({id:e.id,name:r(e.name),description:r(e.description)}))}}(t),ln.x.value||[],s.H.value||"en")},qi=()=>{var e,t,n=ji.u.value||[],r=Jt.$.value||[],o=ln.x.value||[],i=b.T.value||[],a=s.H.value||"en",u=Fi.D.value||[],l=zi.t.filter(e=>u.includes(e.id)),d=ni(n,r,l,o,i,{texts:[]},{locale:a});Ji(d),((e,t,n)=>{for(const r of t)ai(e,r,n)})(d,null!=(e=null==(t=at.v.value)?void 0:t.categories)?e:[],a);var c=(e=>{const t={},n=[];for(const r of e.nodes)if("vendor"===r.type){const e=r,s=(e.name||"").charAt(0).toUpperCase();if(!s)continue;t[s]||(t[s]={categoryNode:ui(s,s),categoryNodeIds:[]},n.push(s)),t[s].categoryNodeIds.push(e.id)}return n.sort(),n.map(e=>t[e])})(d.vendors);return((e,t)=>{for(const n of t){const{categoryNode:t,categoryNodeIds:r}=n;li(e,t,r)}})(d,c),Po(d),d},Zi=e=>(Array.isArray(e)?e:[]).filter(e=>null!=e&&""!==e).map(e=>"string"==typeof e&&e.startsWith("c:")?e.slice(2):e),$i=t=>{var n=I.II.value||{};(0,I.vY)((0,e.A)({},n,{vendors:t.vendors,vendors_li:t.vendors_li,purposes:t.purposes,purposes_li:t.purposes_li,created:t.created,updated:t.updated}))},Yi=(t,n,r)=>{var s=t||qi(),o=I.II.value||{},i=n||(e=>{var t,n,r,s,o,i,a,u;return{vendors:{enabled:Zi(null==(t=e.vendors)?void 0:t.enabled),disabled:Zi(null==(n=e.vendors)?void 0:n.disabled)},vendors_li:{enabled:Zi(null==(r=e.vendors_li)?void 0:r.enabled),disabled:Zi(null==(s=e.vendors_li)?void 0:s.disabled)},purposes:{enabled:Zi(null==(o=e.purposes)?void 0:o.enabled),disabled:Zi(null==(i=e.purposes)?void 0:i.disabled)},purposes_li:{enabled:Zi(null==(a=e.purposes_li)?void 0:a.enabled),disabled:Zi(null==(u=e.purposes_li)?void 0:u.disabled)},created:e.created||(new Date).toISOString(),updated:e.updated||(new Date).toISOString()}})(o),a=((e,t)=>{const n=Ei(e,t);return{kio:Di(e,n),token:t}})(s,i),u=null,l=null,c=!1,p=()=>{if(l){var e=l;l=null,e()}or()},v=e=>{if(!c){c=!0;var t=e?"widget-accept-all":"widget-reject-all",n=e?"setUserAgreeToAll":"setUserDisagreeToAll";try{var s,o;"function"==typeof(null==r||null==(s=r.ConsentService)?void 0:s[n])?r.ConsentService[n](t):"function"==typeof(null==r||null==(o=r.WebsiteService)?void 0:o[n])?r.WebsiteService[n](t):$i(Vi(a).token),p()}catch(e){console.error(G.a.didomiPrefix+"bulk commit failed:",e),c=!1}}},f=()=>{if(!c){c=!0;try{var e,t;if(a=Vi(a),null!=r&&null!=(e=r.ConsentService)&&e.setUserStatus&&null!=r&&null!=(t=r.ConsentService)&&t.getUserStatus){var n=new d.A(r.ConsentService.getUserStatus.bind(r.ConsentService),r.ConsentService.setUserStatus.bind(r.ConsentService),"widget-save");((e,t)=>{var{purposesConsentStatus:n={},purposesLIStatus:r={},vendorsConsentStatus:s={},vendorsLIStatus:o={}}=t||{},i=b.T.value||[],{purposeIdsBasedOnConsent:a,purposeIdsBasedOnLI:u}=w.t.value,l=new Set(u),{operatorIdsByCollectionMethod:d}=oe.H.value,c=Mi.S.value||[],p=e=>!0===n[e],v=e=>l.has(e)&&!1!==r[e];for(var f of a)i.includes(f)||(p(f)?e.enablePurpose(f):e.disablePurpose(f));for(var h of u)v(h)?e.enablePurposeLegitimateInterest(h):e.disablePurposeLegitimateInterest(h);var g=function(t){var n=t.purposeIds||[],r=t.legIntPurposeIds||[],a=d.optin.includes(t.id),u=d.optout.includes(t.id),l=e=>c.includes(t.id)||n.some(t=>p(t)||e&&i.includes(t))||r.some(v);if(a&&n.length>0){var f=s[t.id];("boolean"==typeof f?f:l(!0))?e.enableVendor(t.id):e.disableVendor(t.id)}if(u){var h=o[t.id];("boolean"==typeof h?h:l(!1))?e.enableVendorLegitimateInterests(t.id):e.disableVendorLegitimateInterests(t.id)}};for(var m of P.h.value||[])g(m)})(n,(e=>{var t,n,r,s,o,i,a,u,l=(e,t)=>{var n={};for(var r of Zi(e))n[r]=!0;for(var s of Zi(t))n[s]=!1;return n},d=(e,t)=>e.has(t.id)||e.has(String(t.id))||e.has(t.didomiId)||e.has("c:"+t.id),c=(e,t)=>{var n=new Set(e||[]),r=new Set(t||[]),s={};for(var o of P.h.value||[])d(n,o)?s[o.id]=!0:d(r,o)&&(s[o.id]=!1);return s};return{purposesConsentStatus:l(null==(t=e.purposes)?void 0:t.enabled,null==(n=e.purposes)?void 0:n.disabled),purposesLIStatus:l(null==(r=e.purposes_li)?void 0:r.enabled,null==(s=e.purposes_li)?void 0:s.disabled),vendorsConsentStatus:c(null==(o=e.vendors)?void 0:o.enabled,null==(i=e.vendors)?void 0:i.disabled),vendorsLIStatus:c(null==(a=e.vendors_li)?void 0:a.enabled,null==(u=e.vendors_li)?void 0:u.disabled)}})(a.token)),n.commit()}else $i(a.token);p()}catch(e){console.error(G.a.didomiPrefix+"save failed:",e),c=!1}}},h={update:e=>{if(!c){var t=Array.isArray(e)?e:[e];for(var n of t)a=Ni(a,n);u&&u(a.kio)}},acceptAll:()=>{a=(e=>Bi(e,!0))(a),v(!0)},rejectAll:()=>{a=(e=>Bi(e,!1))(a),v(!1)},save:()=>{f()},cancel:()=>{c||(a=(e=>{const t=Ei(e.kio,e.token);return{...e,kio:Di(e.kio,t)}})(a),p())}},g=()=>a.kio,m=(e,t)=>{if("string"!=typeof e||""===e.trim())return console.error(G.a.didomiPrefix+"customAction called with an invalid action name"),!1;var n=e.trim(),r=n.toLowerCase();return(0,Ki.lR)(r)?((0,F.Ic)(r,null!=t?t:{action:n}),!0):(console.error(G.a.didomiPrefix+'Custom action "'+e+'" collides with a reserved Didomi event namespace and was not emitted'),!1)};return{actions:h,getProps:()=>{var t;return(0,e.A)({user:{user_id:(null==(t=I.II.value)?void 0:t.user_id)||"",didomi_token:""},state:"open",status:"pending",consent_missing:!1,vendors:a.kio.vendors,purposes:a.kio.purposes,textMacros:{},isLoading:!1,error:void 0},h,{getState:g,customAction:m})},getState:g,customAction:m,getTransaction:()=>a,setOnChange:e=>{u=e},setOnDispose:e=>{l=e}}},Qi=e=>e?Array.isArray(e.bundleUrls)&&e.bundleUrls.length>0?e.bundleUrls[0]||null:e.bundleUrl||null:null,Xi=e=>{var t=Qi(e);return t?{url:t,mode:"module"}:null},ea=0,ta=null,na=null,ra=null,sa=new Map,oa=new Set,ia=(e,t,n)=>{console.error(G.a.didomiPrefix+"Widget '"+e+"': "+t),(0,ls.k0)(ds.Cb.ERROR_WIDGET_LOAD,{reason:t,path:n})},aa=(e,t)=>({reason:G.a.didomiPrefix+"Failed to load widget '"+e+"':"+t}),ua=e=>{var t=document.createElement("script");return e&&t.setAttribute("nonce",e),t},la=(e,t)=>"classic"===e.candidate.mode?((e,t)=>{var{widgetId:n,candidate:{url:r,globalName:s},nonce:o}=e;delete window[s];var i=e=>{var n=window[s];delete window[s],t(n,n?null:e)},a=ua(o);return a.type="text/javascript",a.async=!0,a.src=r,a.onload=()=>i({reason:"bundle did not expose the global '"+s+"'"}),a.onerror=e=>i(aa(n,e)),document.head.appendChild(a),()=>{a.onload=null,a.onerror=null}})(e,t):((e,t)=>{var{widgetId:n,candidate:{url:r},nonce:s}=e,o="__didomi_widget_"+ ++ea,i=r.replace(/\\/g,"\\\\").replace(/"/g,'\\"'),a=ua(s);a.type="module",a.textContent='\n import * as widgetModule from "'+i+'";\n window["'+o+"\"] = widgetModule;\n window.dispatchEvent(new Event('"+o+"'));\n ";var u=()=>{window.removeEventListener(o,u);var e=window[o];delete window[o],t(e,e?null:{reason:"module namespace missing"})};return window.addEventListener(o,u),a.onerror=e=>{window.removeEventListener(o,u),t(null,aa(n,e))},document.head.appendChild(a),()=>{window.removeEventListener(o,u)}})(e,t),da=function(){var r=(0,t.A)(function*(t){var{widgetId:r,widgetModule:s,services:o,options:i,release:a,iabTextsPromise:u}=t;if("function"!=typeof(null==s?void 0:s.mount))return console.warn(G.a.didomiPrefix+"Widget '"+r+"' does not export a mount function"),(0,ls.k0)(ds.Cb.ERROR_WIDGET_LOAD,{reason:"bundle exports no mount function"}),a(),!1;try{var l;yield Promise.race([u,new Promise(e=>setTimeout(e,3e3))]);var d=Yi(void 0,void 0,o);na=d;var{onLayerChange:c,execCustomAction:p}=(e=>{var{widgetId:t,bridge:n,initialLayerName:r}=e,s=r,o=!1;return{onLayerChange:e=>{if(e){if(!o)return o=!0,void(s=e);if(ra===t&&e!==s){var n=s;s=e,(0,F.Ic)("widget.switch_layer",{widgetId:t,previousLayerName:n,layerName:e}),(0,F.Ic)("widget.shown",{widgetId:t,layerName:e})}}},execCustomAction:e=>{ra===t&&n.customAction(e)&&(0,F.Ic)("widget.custom_action",{widgetId:t,layerName:s,customActionId:e.trim()})}}})({widgetId:r,bridge:d,initialLayerName:null==i?void 0:i.layerName}),v=s.mount(nr,(0,e.A)({},d.getProps(),{brand:null==(l=n.bK.value)?void 0:l.brand,activeLayer:null==i?void 0:i.layerName,onLayerChange:c,execCustomAction:p}));if(v&&"function"==typeof v.update){var f=(0,C.vP)(d.getState());d.setOnChange(e=>{f.value=e});var h=(0,C.QZ)(()=>{var e=f.value;v.update({vendors:e.vendors,purposes:e.purposes})});d.setOnDispose(()=>{if(h(),"function"==typeof v.unmount)try{v.unmount()}catch(e){console.error(G.a.didomiPrefix+"Widget '"+r+"' unmount failed:",e)}a()})}else console.warn(G.a.didomiPrefix+"Widget '"+r+"' mount() returned no update() handle"),d.setOnDispose(a);return ta=v||!0,ra=r,(0,F.Ic)("widget.shown",{widgetId:r,layerName:null==i?void 0:i.layerName}),console.log(G.a.didomiPrefix+"Widget '"+r+"' mounted with transaction API"),!0}catch(e){return console.error(G.a.didomiPrefix+"Widget '"+r+"' mount failed:",e),(0,ls.k0)(ds.Cb.ERROR_WIDGET_MOUNT,{reason:String(e)}),a(),!1}});return function(e){return r.apply(this,arguments)}}(),ca=function(){var e=(0,t.A)(function*(e,n,r,s){if(ta)return console.warn(G.a.didomiPrefix+"Widget '"+e+"' load skipped: another widget is already mounted"),!0;ta=!0;var o=()=>{var t=ra;ta=null,na=null,ra=null,sa.delete(e),t&&(0,F.Ic)("widget.hidden",{widgetId:t})},i=Qi(n);if(!i)return console.warn(G.a.didomiPrefix+"No bundle URL for widget '"+e+"'"),o(),!1;try{new URL(i)}catch(t){return console.error(G.a.didomiPrefix+"Invalid bundle URL for widget '"+e+"': "+i),(0,ls.k0)(ds.Cb.ERROR_WIDGET_LOAD,{reason:"Invalid bundle URL: "+i}),o(),!1}var a=Xi(n);if(!a)return ia(e,"no loadable bundle for this SDK build","none"),o(),!1;if(sa.has(e))return sa.get(e);var u=Ie.M.value?4e3:1e4,l=Promise.all([(0,ks.oW)(),fo()]).catch(()=>{}),d=(0,t.A)(function*(){console.log(G.a.didomiPrefix+"Loading widget '"+e+"' from: "+a.url);var t=yield new Promise(t=>{var n,r=!1,s=()=>{},o=(e,n)=>{r||(r=!0,clearTimeout(i),s(),t({widgetModule:e,failure:n}))},i=setTimeout(()=>{o(null,{reason:G.a.didomiPrefix+"Widget '"+e+"' loading timed out after "+u+"ms"})},u);s=la({widgetId:e,candidate:a,nonce:null==(n=Ce.U.value)?void 0:n.nonce},o)});return t.widgetModule?da({widgetId:e,widgetModule:t.widgetModule,services:r,options:s,release:o,iabTextsPromise:l}):(ia(e,t.failure.reason,a.mode),o(),!1)})();return sa.set(e,d),d});return function(t,n,r,s){return e.apply(this,arguments)}}(),pa=()=>{na?na.actions.cancel():rt()?ta?console.warn(G.a.didomiPrefix+"Widget is still loading; unload skipped"):console.warn(G.a.didomiPrefix+"No active widget to unload"):console.warn(G.a.didomiPrefix+"No widgets are configured; nothing to hide")},va=e=>rt()?!!ra&&(void 0===e||ra===e):(console.warn(G.a.didomiPrefix+"No widgets are configured"),!1),fa=function(){var e=(0,t.A)(function*(e,t,n){if(null!=e&&e.widgetId)return ca(e.widgetId,e.widgetDef,t,n);console.log(G.a.didomiPrefix+"No widget selected")});return function(t,n,r){return e.apply(this,arguments)}}(),ha=(e,t)=>rt()?void 0===e||(0,l.Qd)(e)?(e=>{if(e)return!!nt(e);var t=st();return t?!!nt(t.widgetId):!!Xe()})(null==e?void 0:e.widgetId):(console.warn(""+G.a.didomiPrefix+t+" expects an options object"),!1):(console.warn(G.a.didomiPrefix+"No widgets are configured"),!1),ga=e=>(e||[]).filter(e=>!!e&&xo(e.didomiId,"vendor",!0)),ma={consent:()=>w.t.value.purposeIdsBasedOnConsent,legitimate_interest:()=>w.t.value.purposeIdsBasedOnLI,essential:()=>b.T.value},ba=Object.keys(ma),ya=["consent"],_a=e=>{if(!ha(e,"getApplicablePurposes"))return[];var{legalBases:t}=null!=e?e:{};if(void 0!==t&&!(e=>Array.isArray(e)&&e.length>0&&e.every(e=>Object.hasOwn(ma,e)))(t))return console.warn(G.a.didomiPrefix+"getApplicablePurposes expects legalBases to be a non-empty array of "+ba.join(", ")),[];var n=(null!=t?t:ya).flatMap(e=>ma[e]());return(0,h.$)(n).filter(e=>xo(e,"purpose",!0))},Ia={widgetId:Rs.u,layerName:Rs.u},Sa=Object.keys(Ia),wa=()=>{var t,r,s,o=null==(t=n.bK.value)?void 0:t.rules,i=null==(r=n.bK.value)?void 0:r.widgets;return(null==o?void 0:o.length)>0&&Object.keys(i||{}).length?(Qe({rules:o,defaultWidgetId:null==(s=n.bK.value)?void 0:s.defaultWidgetId,widgets:i}),(()=>{var t,n,r;if(!$e)return console.warn(G.a.didomiPrefix+"Engine not initialized, call initRulesEngine first"),null;var s=Ke(),o=$e.evaluate(s),i="manual"===(null==o||null==(t=o.rule)?void 0:t.triggerMode);Ze.value=(0,e.A)({},Ze.value,{selectedWidgetId:null==o?void 0:o.widgetId,matchedRuleId:null!=(n=null==o||null==(r=o.rule)?void 0:r.id)?n:null,isManualTrigger:i}),o?console.log(G.a.didomiPrefix+"Selected widget: "+o.widgetId):console.log(G.a.didomiPrefix+"No matching rule found")})(),Xe()):null},Aa=()=>{var e,t,n;if(Ie.M.value){var r,s=null!=(r=H.G.value)&&r.isUnderage?null:wa(),o=s?Qi((n=s).widgetDef)?n.isManualTrigger?"is triggered manually, so nothing would display it on load":null:"has no bundle URL":null;return s&&!o?{selectedWidget:s,uiModule:null}:(o&&console.warn(G.a.didomiPrefix+"Widget '"+s.widgetId+"' "+o+", falling back to the CTV UI module"),$e=null,Ye=null,Ze.value={initialized:!1,selectedWidgetId:null,matchedRuleId:null,isManualTrigger:!1},{selectedWidget:null,uiModule:{module:"ctv"}})}if(null!=(e=H.G.value)&&e.isUnderage)return{selectedWidget:null,uiModule:{module:"underage"}};var i=wa();return i?{selectedWidget:i,uiModule:null}:{selectedWidget:null,uiModule:{module:null,options:{regulation:null==(t=$.r.value)?void 0:t.name}}}},Ca=function(){var e=(0,t.A)(function*(e){var{authProviderId:t}=void 0===e?{}:e,{apiPath:n,apiKey:r}=mr(),{emitAPIError:s}=br(),{location:{protocol:o,hostname:i,pathname:a}}=document,u=o+"//"+i+a,l=new URL(n);l.pathname="/auth/initiate",l.searchParams.append("key",r),l.searchParams.append("privacy_center_url",u),l.searchParams.append("redirect","false"),t&&l.searchParams.append("auth_provider_id",t);var d=yield yr({method:"GET",url:l.toString()});if(200===d.status)try{var c=d.data,p=c.callback,v=c.protocol;return(e=>{Zr.value=e})(p),(e=>{$r.value=e})(v),p}catch(e){return console.error("Didomi - "+e.message),!1}else s(d.status,"requestAuthentication");return!1});return function(t){return e.apply(this,arguments)}}(),Pa=function(){var e=(0,t.A)(function*(e){var{value:t,channel:n,params:r}=e,{emitAPIError:s}=br(),o=Zr.value;if(!o){var i="You need to request a callback URL through Didomi.requestAuthenticationURL({ authProviderId })";throw console.error("Didomi - "+i),{error:i}}var a=r?"&"+encodeURI(Object.keys(r).map(e=>"message_params["+e+"]="+r[e]).join("&")):"",u=yield yr({method:"GET",url:o+"&channel="+n+"&id="+encodeURIComponent(t)+a});if(200!==u.status)throw console.error("Didomi - An error occurred while trying to send the message"),s(u.status,"sendMessage"),{error:u.text,code:u.status}});return function(t){return e.apply(this,arguments)}}(),ka=function(){var e=(0,t.A)(function*(e){var{organizationUserId:t,code:n,authProviderId:r}=void 0===e?{}:e,{apiPath:s,apiKey:o}=mr(),{emitAPIError:i,updateAuthToken:a,setStorageItem:u}=br(),l=new URL(s+"/auth/protocols/otp/verify");l.searchParams.append("key",o),r&&l.searchParams.append("auth_provider_id",r);var d=yield yr({method:"POST",url:l.toString(),body:JSON.stringify({code:n,organization_user_id:t}),headers:{"Content-Type":"application/json"}});if(201!==d.status)throw console.error("Didomi - An error occurred while trying to send the message"),i(d.status,"verifyOtpCode"),{error:d.text,code:d.status};var{token:c}=d.data;return u("didomi_auth_token",c),a(c),{token:c}});return function(t){return e.apply(this,arguments)}}(),Ea=function(){var n=(0,t.A)(function*(t){void 0===t&&(t={});var{apiPath:n,authToken:r}=mr(),{emitAPIError:s}=br(),o=r.value;if(!o)throw console.error("Didomi - Unable to set the remote consent because the token is empty"),new Error("Unable to set the remote consent because the token is empty");if(!t.consents||"object"!=typeof t.consents)throw console.error("Didomi - Unable to set the remote consent because the consents is empty"),new Error("Unable to set the remote consent because the consents is empty");var i=yield yr({method:"POST",url:n+"/consents/events",body:JSON.stringify(t),headers:{Authorization:"Bearer "+o,"Content-Type":"application/json"}});if(201!==i.status)throw s(i.status,"createRemoteConsentEvent"),new Error("Invalid HTTP response code");var a={};try{a=i.data||{}}catch(e){}(t=>{Jr.value=(0,e.A)({},Jr.value,{consents:Hr(Jr.value.consents,t)})})(_r(a.consents)),yield Xr()});return function(e){return n.apply(this,arguments)}}(),Oa=function(){var n=(0,t.A)(function*(t){var{cursor:n,query:r}=void 0===t?{}:t,{apiPath:s,authToken:o}=mr(),{emitAPIError:i}=br(),a=o.value;if(a){var u=(0,e.A)({},r||{});n&&(u.$cursor=n);var l=Object.keys(u).map(e=>e+"="+encodeURIComponent(u[e])).join("&"),d=yield yr({method:"GET",url:s+"/consents/events"+(l?"?"+l:""),headers:{Authorization:"Bearer "+a,"Content-Type":"application/json"}}),c={};if(200===d.status){try{c=d.data||{}}catch(e){}return c}return i(d.status,"getRemoteConsentEvents"),c}return{data:[]}});return function(e){return n.apply(this,arguments)}}(),Ta=function(){var n=(0,t.A)(function*(t){void 0===t&&(t={});var n=yield Oa(t),r=n.data.map(t=>(0,e.A)({},t,{consents:_r(t.consents)}));return(0,e.A)({},n,{data:r})});return function(e){return n.apply(this,arguments)}}(),La=(t,n)=>{var{purposeId:r,preferenceId:s,channelId:o,data:i={}}=n,{enabled:a,metadata:u={},preferenceValue:l}=i,d=Gr(t),c=null,p=null;return r?(Mr(d,"purposes."+r+".id",r),r&&s&&null!=l?Mr(d,"purposes."+r+".values."+s,{value:l}):s?(Mr(d,"purposes."+r+".preferences."+s+".id",s),o?(c="purposes."+r+".preferences."+s+".channels."+o,p=o):(c="purposes."+r+".preferences."+s,p=s)):o?(c="purposes."+r+".channels."+o,p=o):(c="purposes."+r,p=r)):o&&(c="channels."+o,p=o),c&&Mr(d,c,(0,e.A)({id:p},Fr(t,""+c,{}),{metadata:Wr(Fr(t,c+".metadata",{}),u),enabled:a})),d},xa=Lr({}),Ra=(t,n,r,s)=>{var{emitEvent:o}=br();(t=>{var{purposeId:n,preferenceId:r,channelId:s,data:o}=t,i=null,a=null;n?(i=n,a="consents.purposes."+n,r&&(i+="_"+r,a+=".preferences."+r),s&&(i+="_"+s,a+=".channels."+s)):s&&(i=s,a="consents.channels."+s);var{metadata:u={},enabled:l}=Fr(Jr.value,""+a,{}),d={enabled:l,metadata:u};o.metadata=void 0===o.metadata?{}:o.metadata;var c={purposeId:n,preferenceId:r,channelId:s,data:Hr(Hr(d,Fr(xa.value,i+".data",{})),o)};JSON.stringify(c.data)===JSON.stringify(d)?i&&xa.value[i]&&(xa.value=(0,e.A)({},Object.keys(xa.value).filter(e=>e!==i).reduce((e,t)=>(e[t]=xa.value[t],e),{}))):i&&(xa.value=(0,e.A)({},xa.value,{[i]:c}))})({purposeId:t,preferenceId:n,channelId:r,data:Kr(s,["enabled","metadata","preferenceValue"])}),o("consent.pendingchanged",{pendingConsents:Ua()})},Ua=()=>{var e=xa.value;return Object.keys(e).map(t=>e[t])},Da=function(){var n=(0,t.A)(function*(t){void 0===t&&(t={});var n={};Ua().forEach(e=>{var{purposeId:t,preferenceId:r,channelId:s,data:o}=e;n=La(n,{purposeId:t,preferenceId:r,channelId:s,data:o})});var r=Ir(n);yield Ea((0,e.A)({consents:r},t)),Na()});return function(e){return n.apply(this,arguments)}}(),Na=()=>{var{emitEvent:e}=br();xa.value={},e("consent.pendingchanged",{pendingConsents:Ua()})};function Ba(e){return Va.apply(this,arguments)}function Va(){return(Va=(0,t.A)(function*(e){return function(e){var t,n;return!(!e||null==(t=$.r.value)||!t.name||null!=(n=A.a.value)&&n.hasMadeAnyChoice)}(e)?((0,ls.Ej)([ds.Cb.SP_CONSENT_MIGRATION_RUN]),i.e("src_sdk_sourcepoint_consent-migration_index_js").then(i.bind(i,95661)).then(t=>t.migrateSpConsent(e)).catch(e=>((0,ls.k0)(ds.Cb.SP_ERROR_CONSENT_MIGRATION,{reason:String(e)}),Promise.resolve(null)))):Promise.resolve(null)})).apply(this,arguments)}o("init-started",{detail:"Initialization of the Didomi SDK started"});var ja={},Ma={},Fa={},za=!1,Wa=[],Ga=null,Ha=()=>Boolean(Ga)&&rt(),Ka=(e,t,n)=>{var r,s,o,i;null!=t&&t.widgetId&&(tt(t.widgetId,null!=(r=t.ruleId)?r:null,null!=(s=t.isManualTrigger)&&s),e.EventsService.sendConsentAsked(w.t.value.purposeIdsBasedOnConsent,m.R.value,w.t.value.purposeIdsBasedOnLI,vt.H$.value.operatorIdsWithAtLeastOneOptoutPurpose,null!=(o=null==n?void 0:n.position)?o:null==(i=it.l.value)?void 0:i.position));Wa.push(fa(t,e,n).catch(e=>{console.error(G.a.didomiPrefix+"Widget load failed unexpectedly:",e)}))};function Ja(e){var r,s,i,a;e.SiteConfigService.configure(n.bK.value);var l,d,c=(l=n.bK.value.tagManager,new Promise(e=>{var t=(0,Gs.getApplicableProviders)(l);Promise.all([...t].map(e=>(0,Hs.loadProviderModule)(e,{dataLayerName:null==l?void 0:l.dataLayerName}))).then(t=>{Ys=[...t].filter(Boolean),e()}).catch(t=>{console.error(G.a.didomiPrefix+"Error setting up tag managers:",t),e()})})),p=(d=n.bK.value.integrations,new Promise(e=>{try{var t=(0,no.getApplicableProviders)(d);Promise.all([...t].map(e=>(0,ro.loadProviderModule)(e,d))).then(t=>{var n=(so=[...t].filter(Boolean)).length>0;n&&(0,F.Ic)("internal.integrations.loaded"),e(n)}).catch(t=>{console.error(G.a.didomiPrefix+"Error setting up integrations:",t),e(!1)})}catch(t){console.error(G.a.didomiPrefix+"Error setting up integrations:",t),e(!1)}}));if(null!=(r=n.bK.value)&&null!=(s=r.integrations)&&s.gpp&&Wa.push(Ws()),!window.gdprAppliesGlobally||null!=(i=n.bK.value)&&i.version||Q("gdprAppliesGlobally-v0"),Qr({mergeUsers:!0}).then(()=>{e.ComponentsService.initComponentsModule()}),e.SignatureService.checkUnsignedConsent(),"none"===(null==(a=$.r.value)?void 0:a.name))return xt(),Wa.push(p.then(e=>e&&io({ready:!0,consent:!1})).then(()=>c).then(()=>to({ready:!0,consent:!1}))),window.Didomi=ja,ms(Ma),void Promise.all(Wa).then(()=>{us(ja)});var v=Aa();(Ga=v.selectedWidget)&&!Ga.isManualTrigger&&(e=>{var t=Xi(e);if(t&&!oa.has(t.url)){try{new URL(t.url)}catch(e){return}oa.add(t.url);var n=document.createElement("link");"module"===t.mode?n.rel="modulepreload":(n.rel="preload",n.as="script"),n.href=t.url,document.head.appendChild(n)}})(Ga.widgetDef),v.uiModule&&pr(v.uiModule.module,v.uiModule.options),(0,bs.F)(()=>{e.StorageService.initStorages((0,t.A)(function*(){var t,r=e.StorageService.initStoreFromStorage(),s=r.didomiTokenCreatedFromIABToken,i=r.token;if(e.WebsiteService.shouldNoticeBeShown()&&(Ga&&!Ga.isManualTrigger?Ka(e,Ga):e.UIService.preLoad()),Ga){var a,l=null==(a=u.J3.getState().consentNotice)?void 0:a.show;u.J3.subscribe(()=>{var t,n=null==(t=u.J3.getState().consentNotice)?void 0:t.show;n&&!l&&Ga&&!Ga.isManualTrigger&&Ka(e,Ga),l=n})}yield e.ConsentService.loadExternalConsent(),se(),"test"===(null==(t=ke.value)?void 0:t.group)&&ja.configure(ke.value.config,!0),(0,bs.F)(()=>{var t=u.J3.getState();"tv"===(0,n.On)("mode")&&(0,Ss.a)(),!0===t.sync.delayNotice?e.SyncService.run(()=>{xt({willAutoShowNotice:e.WebsiteService.willNoticeBeAutoShown()}),e.WebsiteService.determineConsentNoticeStatus()},!0):(e.SyncService.run(void 0,!0),xt({willAutoShowNotice:e.WebsiteService.willNoticeBeAutoShown()}),e.WebsiteService.determineConsentNoticeStatus()),Wa.push(p.then(e=>{e&&io({ready:!0,consent:!0})}).then(()=>c).then(()=>to({ready:!0,consent:!0}))),za=!0,e.EventsService.sendPageview(),window.Didomi=ja,ms(Ma),o("init-finished",{detail:"Initialization of the Didomi SDK finished"}),e.UIService.isRenderScheduled()?(0,F.Oo)("ui.ready",()=>{Promise.all(Wa).then(()=>{o("notice-shown",{detail:"Didomi notice shown"}),us(ja)})}):Promise.all(Wa).then(()=>{us(ja)}),s&&e.ConsentService.sendEvents(i,!0)},!0)}))},!0)}function qa(o){((e,t)=>{hr=e,gr=t})({apiPath:(0,r.M)("apiPath"),apiKey:ye.K.value,authToken:Ls},{emitEvent:F.Ic,emitAPIError:F.KU,updateUserId:fr.C,updateAuthToken:xs,setStorageItem:sn.NT,getStorageItem:Ts._S}),sr(s.H.value),window.addEventListener("pagehide",()=>{o.EventsService.sendPageview(!0)}),Object.assign(Ma,{getConfig(){return n.bK.value},getUserConsentStatus(e,t){return void 0===t&&(t=null),Q("get-user-consent-status"),((e,t)=>!(!A.a.value.byLegalBasis.consent.purposesById[e]&&!b.T.value.includes(e)||!A.a.value.byLegalBasis.consent.vendorsById[t])||!1!==A.a.value.byLegalBasis.consent.purposesById[e]&&!1!==A.a.value.byLegalBasis.consent.vendorsById[t]&&void 0)(e,t)},getUserConsentStatusForPurpose(e){return Q("get-user-consent-status-for-purpose"),A.a.value.byLegalBasis.consent.purposesById[e]},getUserConsentStatusForVendor(e){return Q("get-user-consent-status-for-vendor"),o.ConsentService.getUserConsentStatusForAllPurposesByVendor(e)},getUserStatus(){return Q("get-user-status"),o.ConsentService.getUserStatus()},getCurrentUserStatus(){var e;return Q("get-current-user-status"),null!=(e=ao.K.value)&&e.length&&Q("get-current-user-status-with-custom-vendors"),js.L.value}}),Object.assign(Fa,{getUserAuthToken(){return Ls.value},setUserAuthToken(e){return xs(e)},isRegulationApplied(e){var t;return(null==(t=$.r.value)?void 0:t.name)===e},isConsentRequired(){return Q("is-consent-required"),te.y.value},requestAuthenticationURL(e){var{authProviderId:t}=void 0===e?{}:e;return Ca({authProviderId:t})},sendEmailLogin(e,t){return Q("send-email-login"),Pa({value:e,channel:"email",params:t})},sendMessageLogin(e){var{value:t,channel:n,params:r}=e;return Q("send-message-login"),Pa({value:t,channel:n,params:r})},sendLogin(e){var{value:t,channel:n,params:r}=e;return Pa({value:t,channel:n,params:r})},verifyOtpCode(e){var{code:t,organizationUserId:n,authProviderId:r}=e;return ka({code:t,organizationUserId:n,authProviderId:r})},getRemoteConsentsFromAPI(){return Qr()},Purposes:o.ConsentService.Purposes,on(e,t){return e=e.toLowerCase(),(0,Ki.Yj)(e)?(0,F.on)(e,t):(console.error(G.a.didomiPrefix+'Cannot subscribe to unknown event type "'+e+'"'),null)},once(e,t){if(e=e.toLowerCase(),(0,Ki.Yj)(e))return(0,F.Oo)(e,t);console.error(G.a.didomiPrefix+'Cannot subscribe to unknown event type "'+e+'"')},off(e,t){if(e=e.toLowerCase(),(0,Ki.Yj)(e))return(0,F.pQ)(e,t);console.error(G.a.didomiPrefix+'Cannot unsubscribe from unknown event type "'+e+'"')},emit(e){if(e=e.toLowerCase(),(0,Ki.lR)(e)){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{var n,r,s;if(void 0===e||void 0===t)return-1;var o=Fs(e);if(o)return o.listeners.push(t),o.listeners.length-1;var i=null==(n=k.value)?void 0:n[e];return void 0===i?-1:(o={vendorId:i,didomiId:e,enabled:!0===(null==(r=js.L.value)||null==(s=r.vendors[e])?void 0:s.enabled),listeners:[t]},Ms[e]=o,0)})(e,t)},removeVendorStatusListener(e,t){return((e,t)=>{if(void 0===t||t<0||void 0===e)return-1;var n=Fs(e);return n?n.listeners.length<=t||void 0===n.listeners[t]?-1:(n.listeners[t]=void 0,t):-1})(e,t)},setUserStatusForAll(e){var{purposesConsentStatus:t,purposesLIStatus:n,vendorsConsentStatus:r,vendorsLIStatus:s,created:i,updated:a,action:u}=e;return o.ConsentService.setUserStatusForAll({purposesConsentStatus:t,purposesLIStatus:n,vendorsConsentStatus:r,vendorsLIStatus:s,created:i,updated:a,action:u})},setUserConsentStatus(e,t,n){return Q("set-user-consent-status"),o.ConsentService.setUserConsentStatusDeprecated(e,t,n)},setUserConsentStatusForAll(e,t,n,r){return void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=[]),o.ConsentService.setUserConsentStatus(e,t,n,r)},setRemoteConsentStatusForAll(e){return Ea(e)},getUserConsentStatusForAll(){return{purposes:{enabled:A.a.value.byLegalBasis.consent.purposes.enabled,disabled:A.a.value.byLegalBasis.consent.purposes.disabled},vendors:{enabled:A.a.value.byLegalBasis.consent.vendors.enabled,disabled:A.a.value.byLegalBasis.consent.vendors.disabled}}},getRemoteConsentStatusForAll(){return Gr(Jr.value)},getRemoteConsentEventsForAll(e){return Ta(e)},refreshRemoteConsentsForAll(){return Xr()},getPendingConsents(){return Ua()},savePendingConsents(e){return Da(e)},resetPendingConsents(){return Na()},saveConsentForEntityById(e,t,n,r,s,o,i,a,u,l){return((e,t,n,r,s,o,i,a,u,l)=>{var d=Kr(r,["enabled","metadata","preferenceValue"]),c=La({},{purposeId:e,preferenceId:t,channelId:n,data:d}),p={consents:Ir(c),metadata:s,proofs:o,source:i,validation:a};return u&&u.metadata&&(p.user={metadata:u.metadata}),l&&(p.analytics=l),Ea(p)})(e,t,n,r,s,o,i,a,u,l)},setPendingConsentForEntityById(e,t,n,r){return Ra(e,t,n,r)},openTransaction(){return Q("open-transaction"),new d.A(o.ConsentService.getUserStatus.bind(o.ConsentService),o.ConsentService.setUserStatus.bind(o.ConsentService))},openCurrentUserStatusTransaction(){return new zs(o.ConsentService.setCurrentUserStatus.bind(o.ConsentService))},isUserAuthenticated(){return qr.value},getAuthProtocol(){return Q("get-auth-protocol"),$r.value},isTCFEnabled(){return Ae.X.value},configure(e,t){void 0===t&&(t=!1),t||Q("configure"),(0,n.MU)(e),o.SiteConfigService.configure(e),za&&o.WebsiteService.determineConsentNoticeStatus()},notice:{configure(e){u.fh.setConsentNoticeConfig(e)},show(){Ha()?Ka(o,Ga):o.NoticeService.show()},hide(){Ha()&&va()?pa():o.NoticeService.hide()},isVisible(){return Ha()?va():o.NoticeService.isVisible()},showDataProcessing(){var e;return null==(e=it.l.value)?void 0:e.showDataProcessing}},preferences:{hide(){if(Ha()&&va())return pa(),void(0,F.Ic)("preferences.hidden");o.PreferencesService.hide()},show(e){if(Ha())return va()||(0,F.Ic)("preferences.shown"),e&&console.warn(G.a.didomiPrefix+"preferences.show('"+e+"') ignores the view when a widget renders the notice. Use Didomi.widgets.show({ layerName }) to open a specific layer."),void Ka(o,Ga,{position:"preferences"});o.PreferencesService.show(e)},isVisible(){return Ha()?va():o.PreferencesService.isVisible()}},setUserAgreeToAll(e){void 0===e&&(e="external"),o.WebsiteService.setUserAgreeToAll(e)},setUserDisagreeToAll(e){void 0===e&&(e="external"),o.WebsiteService.setUserDisagreeToAll(e)},isUserConsentStatusPartial(){return Q("is-user-consent-status-partial"),o.WebsiteService.isUserConsentStatusPartial()},setConfigParameter(e,t){return(0,n.ld)(e,t)},theme:{set(e,t){Q("theme-set");var r=e||t;(0,n.MU)({theme:{color:r}})}},reset(e){void 0===e&&(e=null),o.StorageService.reset(e)},getRequiredVendorIds(){return m.R.value},getRequiredVendors(e,t){return((e,t)=>{var n=Os(P.h.value,e);return"function"==typeof(null==t?void 0:t.onSuccess)&&Es(t.onSuccess,t=>Os(t,e)),n})(e,t)},getVendorById(e){var t;return null==(t=g.o.value)?void 0:t[e]},getVendorByNumericId(e){return(e=>{var t;return null==(t=g.o.value)?void 0:t[vn.value.numberIdToVendorMap[e]]})(e)},getVendorNumericId(e){var t,n;return null==(t=vn.value)||null==(n=t.vendorToNumericIdMap)?void 0:n[e]},getVendors(){return Kt.E.value},getRequiredPurposeIds(){return(0,h.$)([...w.t.value.purposeIdsBasedOnConsent,...ln.Y.value])},getRequiredPurposes(e){return(0,h.$)([...w.t.value.purposeIdsBasedOnConsent,...ln.Y.value]).map(e=>w.t.value.purposes.find(t=>t.id===e)).filter(t=>!e||(null==t?void 0:t.namespace)===e)},getPurposeById(e){return(0,ws.z)(e)},getPurposes(){return an.m.value},getPurposeByNumericId(e){var t,n,r=null==(t=dn.value)?void 0:t.numberIdToPurposeMap[e];return(null==(n=an.m.value)?void 0:n[r])||null},getPurposeNumericId(e){var t,n,r;return null==(t=an.m.value)||null==(n=t[e])||null==(r=n.namespaces)?void 0:r.num},getLanguage(){return s.H.value},getPurposesBasedOnConsent(){return(0,h.$)([...w.t.value.purposeIdsBasedOnConsent,...b.T.value]).reduce((t,n)=>{var r,s=null==(r=an.m.value)?void 0:r[n];return s&&t.push((0,e.A)({},s,{legalBasis:"consent"})),t},[])},getPurposesBasedOnLegitimateInterest(){return w.t.value.purposesBasedOnLI},getPurposesFromAllLegalBases(){return[...w.t.value.purposesBasedOnConsent,...w.t.value.purposesBasedOnLI]},getCategories(){var e;return null==(e=at.v.value)?void 0:e.categories},navigate(e){console.info(G.a.didomiPrefix+"Ignoring call to navigate. Ensure that the UI is displayed and that the SDK is ready by wrapping your calls in window.didomiOnReady callbacks",e)},getTranslationAsHTML(){return console.error(G.a.didomiPrefix+"The UI module needs to be loaded before using the getTranslationAsHTML function"),null},shouldConsentBeCollected(){return o.WebsiteService.shouldConsentBeCollected()},shouldReconsentBeEnforced(){return o.WebsiteService.shouldReconsentBeEnforced()},getExperiment(){return Ee.value},version:"932d9f8c291f98a24970620e3f002281aa30b543-2026-09-14T14:04:27.129Z",getCedFactory(){return rn.g},useCedFactory(e){return t=e,void(rn.g?t(rn.g):(0,F.on)("ced.loaded",()=>{t(rn.g)}));var t},setUser(e){o.SyncService.clearLastSyncDate();var{organizationUserId:t,organizationUserIdAuthAlgorithm:n,organizationUserIdAuthSid:r,organizationUserIdAuthSalt:s,organizationUserIdAuthDigest:i,organizationUserIdExp:a,organizationUserIdIv:u,isUnderage:l,isLoggedIn:d,ageGroup:c,userContext:p}=e||{};l&&H.G.value.isUnderage!==l&&o.UIService.reloadUIModule("underage",{show:!0}),Us({organizationUserId:t,organizationUserIdAuthAlgorithm:n,organizationUserIdAuthSid:r,organizationUserIdAuthSalt:s,organizationUserIdAuthDigest:i,organizationUserIdExp:a,organizationUserIdIv:u,isUnderage:l,isLoggedIn:d,ageGroup:c,userContext:p})},syncUser(){return new Promise(e=>{o.SyncService.run(t=>e(t),!1)})},pushUserStatusToServer(){return new Promise(e=>{if(H.G.value.organizationUserId){var{purposes:t,purposes_li:n,vendors:r,vendors_li:s,created:i,updated:a,dns:u}=I.II.value;o.EventsService.sendConsentGiven({purposes:t,vendors:r,created:i,updated:a,dns:!0===u||void 0,from_euconsent:!1,action:"replay",purposes_li:n,vendors_li:s},!1)}e()})},clearUser(){return new Promise(e=>{o.SyncService.clearLastSyncDate(),Us({organizationUserId:void 0,organizationUserIdAuthAlgorithm:void 0,organizationUserIdAuthSid:void 0,organizationUserIdAuthSalt:void 0,organizationUserIdAuthDigest:void 0,organizationUserIdExp:void 0,organizationUserIdIv:void 0,isUnderage:!1,isLoggedIn:!1,ageGroup:"",userContext:{attributes:{}}}),e()})},isUserStatusPartial(){return o.WebsiteService.isUserStatusPartial()},shouldUserStatusBeCollected(){return o.WebsiteService.shouldUserStatusBeCollected()},getCMModule(){return(0,t.A)(function*(){return i.e("src_sdk_compliance-monitoring_index_js").then(i.bind(i,22362))})()},widgets:{show(t){if(rt()){if((e=>{if(void 0===e)return!0;if(!(0,l.Qd)(e))return console.warn(G.a.didomiPrefix+'show expects an options object, e.g. { widgetId: "..." }'),!1;var t=Object.keys(e).filter(e=>!Sa.includes(e));if(t.length>0)return console.warn(G.a.didomiPrefix+"show received unknown option(s): "+t.join(", ")+". Supported options: "+Sa.join(", ")+". Nothing is displayed."),!1;var n=Sa.filter(t=>void 0!==e[t]&&!Ia[t](e[t]));return!(n.length>0&&(console.warn(G.a.didomiPrefix+"show received invalid value(s) for: "+n.join(", ")+". Expected a non-empty string. Nothing is displayed."),1))})(t)){var n,{widgetId:r,layerName:s}=null!=t?t:{};if(r)n=nt(r);else{var i=st();if(i){var a,u,d,c=nt(i.widgetId);n=c?(0,e.A)({},c,{ruleId:null!=(a=null==(u=i.rule)?void 0:u.id)?a:null,isManualTrigger:"manual"===(null==(d=i.rule)?void 0:d.triggerMode)}):null}else{var p;null!=(p=n=Ga)&&p.widgetId||tt(null)}}Ka(o,n,{layerName:s})}}else console.warn(G.a.didomiPrefix+"No widgets are configured; nothing to show")},hide(){pa()},isVisible(e){return void 0===e||(0,l.Qd)(e)?va(null==e?void 0:e.widgetId):(console.warn(G.a.didomiPrefix+'isVisible expects an options object, e.g. { widgetId: "..." }'),!1)},getApplicable(e){return void 0===e||(0,l.Qd)(e)?st(e):(console.warn(G.a.didomiPrefix+"getApplicable expects a context object }"),null)},getApplicableVendors(e){return(e=>{if(!ha(e,"getApplicableVendors"))return[];var t=ga(P.h.value);return"function"==typeof(null==e?void 0:e.onSuccess)&&Es(e.onSuccess,ga),t})(e)},getApplicablePurposes(e){return _a(e)}}}),Object.assign(ja,(0,e.A)({},Ma,Fa)),(()=>{if(!window.didomiEventListeners||!0!==window.didomiEventListeners.stub){if(Array.isArray(window.didomiEventListeners))for(var e of window.didomiEventListeners)"object"==typeof e&&"string"==typeof e.event&&e.event&&"function"==typeof e.listener&&ys(e.event,e.listener);window.didomiEventListeners={stub:!0,push:function(){for(var e=arguments.length,t=new Array(e),n=0;n{if(!_s){_s=!0;var e=!1;(0,F.on)("widget.shown",()=>{e||(e=!0,(0,F.Ic)("notice.shown"))}),(0,F.on)("widget.hidden",()=>{e&&(e=!1,(0,F.Ic)("notice.hidden"))})}})(),function(){var e,t,r,s,o,i,a,u,l=null==(e=window._sp_)||null==(t=e.config)?void 0:t.propertyId;if(!l&&null!=(r=n.bK.value)&&null!=(s=r.sourcepoint)&&null!=(o=s.consentMigration)&&o.enabled&&(l=null==(i=n.bK.value)||null==(a=i.sourcepoint)||null==(u=a.consentMigration)?void 0:u.propertyId),l){var d,c,p=null==(d=n.bK.value)||null==(c=d.user)?void 0:c.externalConsent;p&&!0===p.enabled||(0,n.MU)({user:{externalConsent:{enabled:!0,value:Ba.bind(this,l)}}})}}(),cs((0,r.M)("customSDKPath"),(0,n.On)("website.customSDK")||(0,n.On)("app.customSDK"),ye.K.value,ja,()=>{Ja(o)}),function(e){try{(0,ls.Mf)(function(){return e.EventsService.send(...arguments)})}catch(e){console.warn(G.a.didomiPrefix+"Failed to initialize metrics package:",e)}}(o)}function Za(){!function(e){if(e.didomiConfig&&Object.hasOwn(e,"didomiConfig")&&Object.hasOwn(e.didomiConfig,"sdkPath")&&e.didomiConfig.sdkPath){var t="sdk/932d9f8c291f98a24970620e3f002281aa30b543/modern/";e.didomiConfig.sdkPath.endsWith("/")?i.p=e.didomiConfig.sdkPath+t:i.p=e.didomiConfig.sdkPath+"/"+t}}(window),Is(),(0,n.MU)(Vs()),function(e,t,n){var r={};r.SiteConfigService=new tr(e,t,r),r.EventsService=new ot(e,t,r),r.NoticeService=new dt(e,t,r),r.PreferencesService=new pt(e,t,r),r.ConsentService=new ve(e,t,r),r.WebsiteService=new Rt(e,t,r),r.LocalStoreService=new Nt(e,t,r),r.StorageService=new qn(e,t,r),r.UIService=new vr(e,t,r),r.ComponentsService=new es(e,t,r),r.SyncService=new os(e,t,r),r.SignatureService=new is(e,t,r),Promise.all([Ct(),new Promise(e=>{Promise.resolve().then(i.bind(i,6136)).then(t=>{yt=t,e()})})]).then(()=>{!function(e){for(var t in e)"function"==typeof e[t].init&&e[t].init()}(r),n&&n(r)})}(u.J3,u.fh,qa)}if(document.body)Za();else var $a=setInterval(()=>{document.body&&(clearInterval($a),Za())},1e3);var Ya=ja}(),window.Didomi=a.default}();